Permalink
Switch branches/tags
Nothing to show
Find file Copy path
ed6a006 Aug 11, 2015
2 contributors

Users who have contributed to this file

@jonmountjoy @djmattyg007
executable file 26 lines (18 sloc) 552 Bytes
<?php
require('../vendor/autoload.php');
$app = new Silex\Application();
$app['debug'] = true;
// Register the monolog logging service
$app->register(new Silex\Provider\MonologServiceProvider(), array(
'monolog.logfile' => 'php://stderr',
));
// Register view rendering
$app->register(new Silex\Provider\TwigServiceProvider(), array(
'twig.path' => __DIR__.'/views',
));
// Our web handlers
$app->get('/', function() use($app) {
$app['monolog']->addDebug('logging output.');
return $app['twig']->render('index.twig');
});
$app->run();