mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-15 09:30:58 +00:00
31 lines
696 B
PHP
31 lines
696 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Sylius package.
|
|
*
|
|
* (c) Paweł Jędrzejewski
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use Symfony\Component\ClassLoader\ApcClassLoader;
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
/*
|
|
* Sylius front controller.
|
|
* Live (production) environment.
|
|
*/
|
|
|
|
require_once __DIR__.'/../app/bootstrap.php.cache';
|
|
require_once __DIR__.'/../app/AppKernel.php';
|
|
|
|
$kernel = new AppKernel('prod', false);
|
|
$kernel->loadClassCache();
|
|
|
|
$request = Request::createFromGlobals();
|
|
|
|
$response = $kernel->handle($request);
|
|
$response->send();
|
|
|
|
$kernel->terminate($request, $response);
|