app/library/Bootstrap.php: revove "Application" and add "Services" class with the services definitions.
Had some wierd problem with closures an $this when being defined in one class and used in another (defined in Application, used in Phalcon\Di\FactoryDefault). So we move all of this to "Services" class that directly extends FactoryDefault DI. And therefore, we don't need a Application class anymore.
This commit is contained in:
parent
e591c79133
commit
f9050181d0
2 changed files with 8 additions and 36 deletions
|
|
@ -19,5 +19,5 @@ include APP_PATH . "/app/config/loader.php";
|
|||
/**
|
||||
* Handle the request
|
||||
*/
|
||||
$app = new Httpcb\Application();
|
||||
echo $app->bootstrap()->run();
|
||||
$app = new Phalcon\Mvc\Application(new Httpcb\Services());
|
||||
echo $app->handle()->getContent();
|
||||
|
|
|
|||
Reference in a new issue