Fixed autoloading of AppKernel.php. See https://github.com/symfony/symfony-standard/issues/868
This commit is contained in:
parent
700429032d
commit
72cc28ca7e
|
@ -1,7 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once __DIR__.'/AppKernel.php';
|
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
|
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
|
||||||
|
|
||||||
class AppCache extends HttpCache
|
class AppCache extends HttpCache
|
||||||
|
|
|
@ -24,10 +24,6 @@ if ($debug) {
|
||||||
Debug::enable();
|
Debug::enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hacking strange bug after update
|
|
||||||
// @todo remove on update
|
|
||||||
require_once __DIR__.'/AppKernel.php';
|
|
||||||
|
|
||||||
$kernel = new AppKernel($env, $debug);
|
$kernel = new AppKernel($env, $debug);
|
||||||
$application = new Application($kernel);
|
$application = new Application($kernel);
|
||||||
$application->run($input);
|
$application->run($input);
|
||||||
|
|
|
@ -24,10 +24,6 @@ if (isset($_SERVER['HTTP_CLIENT_IP'])
|
||||||
$loader = require __DIR__.'/../app/autoload.php';
|
$loader = require __DIR__.'/../app/autoload.php';
|
||||||
Debug::enable();
|
Debug::enable();
|
||||||
|
|
||||||
// Hacking strange bug after update
|
|
||||||
// @todo remove on update
|
|
||||||
require_once __DIR__.'/../app/AppKernel.php';
|
|
||||||
|
|
||||||
$kernel = new AppKernel('dev', true);
|
$kernel = new AppKernel('dev', true);
|
||||||
$kernel->loadClassCache();
|
$kernel->loadClassCache();
|
||||||
$request = Request::createFromGlobals();
|
$request = Request::createFromGlobals();
|
||||||
|
|
Loading…
Reference in a new issue