mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing unused function App::setObjects()
This commit is contained in:
parent
a2f725ff76
commit
1e7bf963c3
1 changed files with 0 additions and 14 deletions
|
@ -508,20 +508,6 @@ class App {
|
|||
return self::$__objects[$cacheLocation][$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows you to modify the object listings that App maintains inside of it
|
||||
* Useful for testing
|
||||
*
|
||||
* @param string $type Type of object listing you are changing
|
||||
* @param array $values The values $type should be set to.
|
||||
* @return void
|
||||
*/
|
||||
public static function setObjects($type, $values) {
|
||||
list($plugin, $type) = pluginSplit($type);
|
||||
$cacheLocation = empty($plugin) ? 'app' : $plugin;
|
||||
self::$__objects[$cacheLocation][$type] = $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Declares a package for a class. This package location will be used
|
||||
* by the automatic class loader if the class is tried to be used
|
||||
|
|
Loading…
Reference in a new issue