Skip to content

Instantly share code, notes, and snippets.

@simensen
Created August 4, 2013 03:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save simensen/f4a397c0af19d7a8aca1 to your computer and use it in GitHub Desktop.
<?php
use Symfony\Component\HttpFoundation\Request;
// Create a Symfony HTTP Kernel Interface wrapper
// around an Aura.Framework application.
$app = new Dflydev\Stack\AuraFrameworkWrapper(
dirname(__DIR__).'/aura-demo-1.2.5'
);
$app = (new Stack\Builder())
->push('Dflydev\Stack\BasicAuthentication', [
'realm' => 'YAY!'
'firewall' => [
['path' => '/admin'],
]
])
->resolve($app);
$request = Request::createFromGlobals();
$response = $app->handle($request)->send();
$app->terminate($request, $response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment