1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
GIST/app/bootstrap.php.d/20-routing.php

16 lines
374 B
PHP
Raw Normal View History

2015-05-05 20:33:05 +02:00
<?php
use Symfony\Component\Routing\Loader\YamlFileLoader;
$app['routing.file'] = 'routing.yml';
$app['routing.loader'] = function ($app) {
return new YamlFileLoader($app['config.locator']);
};
$app['routes'] = $app->extend('routes', function ($routes, $app) {
$routes->addCollection($app['routing.loader']->load($app['routing.file']));
return $routes;
});
2015-05-05 22:04:04 +02:00