static function xautoload_Util::containerCallback in X Autoload 7.3
Parameters
object $container: An object with a __get() method.
string $key: Key to be passed to the __get() method as an argument.
Return value
callback Callback with no arguments, that will return the result of $container->__get($key).
File
- lib/
Util.php, line 71
Class
- xautoload_Util
- A number of static methods that don't interact with any global state.
Code
static function containerCallback($container, $key) {
return array(
new xautoload_Container_MagicGet($container, $key),
'get',
);
}