container = $container; $this->init(); } /** * Proxy cache * * Note: Arguments must be scalar types * * @access public * @param string $container Container name * @param string $method Container method * @return mixed */ public function proxy($container, $method) { $args = func_get_args(); $key = 'proxy_'.implode('_', $args); $result = $this->get($key); if ($result === null) { $result = call_user_func_array(array($this->container[$container], $method), array_splice($args, 2)); $this->set($key, $result); } return $result; } }