private function callFunction($functionName) { $app = Bootstrap::getApplication(); $cli = $app['cli']; foreach ($this->extensions as $extension) { if (method_exists($extension, $functionName)) { $cli->debug("Calling {$functionName} on extension " . get_class($extension)); call_user_func(array($extension, $functionName)); } } }
/** * Resolver constructor. */ public function __construct() { $app = Bootstrap::getApplication(); $this->import = $app['import']; }
/** * Handles URI * * @param $uri * @return \Phalcon\Http\ResponseInterface */ public function handleUri($uri) { $response = $this->bootstrap->getApplication()->handle($uri); return $response; }