Skip to content

Instantly share code, notes, and snippets.

@vlastv
Last active December 20, 2015 12:19
Show Gist options
  • Save vlastv/6130410 to your computer and use it in GitHub Desktop.
Save vlastv/6130410 to your computer and use it in GitHub Desktop.
<?php
use Symfony\Component\HttpFoundation\Request;
$loader = require_once __DIR__.'/../app/autoload.php';
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';
$kernel = new AppKernel('prod', false);
//$kernel = new AppCache($kernel);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment