<?php

require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';

//$kernel = new AppCache(new AppKernel('prod', false));
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();

// if you want to use the SonataPageBundle with multisite
// using different relative paths, you must change the request
// object to use the SiteRequest
use Sonata\PageBundle\Request\SiteRequest as Request;

//use Symfony\Component\HttpFoundation\Request;

$kernel->handle(Request::createFromGlobals())->send();
<?php

require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';

//$kernel = new AppCache(new AppKernel('prod', false));
$kernel = new AppKernel('prod', false);
//$kernel->loadClassCache();

// if you want to use the SonataPageBundle with multisite
// using different relative paths, you must change the request
// object to use the SiteRequest
use Sonata\PageBundle\Request\SiteRequest as Request;

//use Symfony\Component\HttpFoundation\Request;

$kernel->handle(Request::createFromGlobals())->send();
Fix 'Cannot redeclare class Sonata\PageBundle\Request\SiteRequestInterface'
Fix 'Cannot redeclare class Sonata\PageBundle\Request\SiteRequestInterface'
