php_dsl_baz.php 286 Bytes
Newer Older
jiangbowen's avatar
jiangbowen committed
1 2 3 4 5 6 7 8 9 10 11 12
<?php

namespace Symfony\Component\Routing\Loader\Configurator;

return function (RoutingConfigurator $routes) {
    $collection = $routes->collection();

    $collection->add('baz_route', '/baz')
        ->defaults(['_controller' => 'AppBundle:Baz:view']);

    return $collection;
};