Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/public/index.php
Henrik Hautakoski f9050181d0 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.
2018-06-18 16:46:40 +02:00

23 lines
428 B
PHP

<?php
defined('APP_PATH') || define('APP_PATH', realpath('..'));
/**
* Read the configuration
*/
$config = include APP_PATH . "/app/config/config.php";
if ($config->application->debug) {
(new Phalcon\Debug)->listen();
}
/**
* Read auto-loader
*/
include APP_PATH . "/app/config/loader.php";
/**
* Handle the request
*/
$app = new Phalcon\Mvc\Application(new Httpcb\Services());
echo $app->handle()->getContent();