-
Igor Wiedler authored
Sample usage: $app = new Application(); $app->register(new MonologExtension(), array( 'monolog.class_path' => __DIR__.'/vendor/monolog/src', 'monolog.logfile' => __DIR__.'/application.log', )); $app->get('/hello', function() use ($app) { $app['monolog']->addDebug('currently at hello'); return 'Hello World!'; }); $app->get('/error', function() { throw new RuntimeException('Some error'); }); $app->run();
8022d089
Name |
Last commit
|
Last update |
---|---|---|
src/Silex | ||
tests | ||
vendor | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
autoload.php | ||
compile | ||
example.htaccess | ||
phpunit.xml.dist |