示例#1
0
 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));
         }
     }
 }
示例#2
0
 /**
  * Resolver constructor.
  */
 public function __construct()
 {
     $app = Bootstrap::getApplication();
     $this->import = $app['import'];
 }
示例#3
0
文件: TestCase.php 项目: arius86/core
 /**
  * Handles URI
  *
  * @param $uri
  * @return \Phalcon\Http\ResponseInterface
  */
 public function handleUri($uri)
 {
     $response = $this->bootstrap->getApplication()->handle($uri);
     return $response;
 }