Last active
August 29, 2015 14:15
-
-
Save brendo/a493d37fdb033c4edb04 to your computer and use it in GitHub Desktop.
Symfony Routing bug?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Symfony\Component\Routing\Route; | |
use Symfony\Component\Routing\RouteCollection; | |
$masterRoutes = new RouteCollection(); | |
$routesA = new RouteCollection(); | |
$routesA->add('hello', new Route('/hello', array('controller' => 'foo'))); | |
$routesA->addPrefix('/a/'); | |
$routesB = new RouteCollection(); | |
$routesB->add('hello', new Route('/hello', array('controller' => 'foo'))); | |
$routesB->addPrefix('/b/'); | |
$masterRoutes->addCollection($routesA); | |
$masterRoutes->addCollection($routesB); | |
var_dump($masterRoutes->all());exit; |
ad3n
commented
Feb 11, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment