File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1026,7 +1026,11 @@ instead of simply ``/hello/{name}``:
1026
1026
use Symfony\Component\Routing\RouteCollection;
1027
1027
1028
1028
$collection = new RouteCollection();
1029
- $collection->addCollection($loader->import("@AcmeHelloBundle/Resources/config/routing.php"), '/admin');
1029
+
1030
+ $acmeHello = $loader->import("@AcmeHelloBundle/Resources/config/routing.php");
1031
+ $acmeHello->setPrefix('/admin');
1032
+
1033
+ $collection->addCollection($acmeHello);
1030
1034
1031
1035
return $collection;
1032
1036
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ in your container:
75
75
76
76
.. code-block :: php
77
77
78
- # app/config/config.php
78
+ // app/config/config.php
79
79
$container->setParameter('acme_demo.locales', 'en|es');
80
80
81
81
You can also use a parameter to define your route path (or part of your
You can’t perform that action at this time.
0 commit comments