Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b5e3d0e52b
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (20 sloc) 0.445 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php
 
require('helpers.php');
require('core.php');
require('library.php');

/**
* Runs Frank
*/
function run(){
if(Frank::was_run() !== true){
$output = Frank::call();
foreach(Frank::middleware() as $middleware){
if(gettype($middleware) == 'string')
$middleware = new $middleware;

$output = $middleware->call($output);
}

Frank::output($output);
}
}

register_shutdown_function('run', E_ALL);

?>
Something went wrong with that request. Please try again.