"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Cache/Cache.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

Cache.php  (cakephp-4.0.1):Cache.php  (cakephp-4.0.2)
skipping to change at line 508 skipping to change at line 508
* *
* $configs will equal to `['posts' => ['daily', 'weekly']]` * $configs will equal to `['posts' => ['daily', 'weekly']]`
* Calling this method will load all the configured engines. * Calling this method will load all the configured engines.
* *
* @param string|null $group group name or null to retrieve all group mappin gs * @param string|null $group group name or null to retrieve all group mappin gs
* @return array map of group and all configuration that has the same group * @return array map of group and all configuration that has the same group
* @throws \Cake\Cache\InvalidArgumentException * @throws \Cake\Cache\InvalidArgumentException
*/ */
public static function groupConfigs(?string $group = null): array public static function groupConfigs(?string $group = null): array
{ {
foreach (array_keys(static::$_config) as $config) { foreach (static::configured() as $config) {
static::pool($config); static::pool($config);
} }
if ($group === null) { if ($group === null) {
return static::$_groups; return static::$_groups;
} }
if (isset(self::$_groups[$group])) { if (isset(self::$_groups[$group])) {
return [$group => self::$_groups[$group]]; return [$group => self::$_groups[$group]];
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)