Skip to content

Instantly share code, notes, and snippets.

@caefer
Created November 15, 2011 06:00
Show Gist options
  • Save caefer/1366295 to your computer and use it in GitHub Desktop.
Save caefer/1366295 to your computer and use it in GitHub Desktop.
<?php
// web/index.php
require_once __DIR__.'/silex.phar';
use Caefer\StaticKernel\StaticCache; // or whatever name and namespace it would have..
$app = new Silex\Application();
// definitions
$cachedApp = new StaticCache($app);
$cachedApp->run(); // send the raw response after writing it to disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment