Archived
1
0
Fork 0

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:
Henrik Hautakoski 2018-06-18 16:46:40 +02:00
parent e591c79133
commit f9050181d0
2 changed files with 8 additions and 36 deletions

View file

@ -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();