Skip to content

Commit

Permalink
Merge pull request symfony#2726 from WouterJ/issue_2719
Browse files Browse the repository at this point in the history
Fixed deprecated route methods
  • Loading branch information
weaverryan committed Jun 16, 2013
2 parents 28f4ae7 + 041df67 commit 1f3a687
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,11 @@ instead of simply ``/hello/{name}``:
use Symfony\Component\Routing\RouteCollection;
$collection = new RouteCollection();
$collection->addCollection($loader->import("@AcmeHelloBundle/Resources/config/routing.php"), '/admin');
$acmeHello = $loader->import("@AcmeHelloBundle/Resources/config/routing.php");
$acmeHello->setPrefix('/admin');
$collection->addCollection($acmeHello);
return $collection;
Expand Down
2 changes: 1 addition & 1 deletion cookbook/routing/service_container_parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ in your container:
.. code-block:: php
# app/config/config.php
// app/config/config.php
$container->setParameter('acme_demo.locales', 'en|es');
You can also use a parameter to define your route path (or part of your
Expand Down

0 comments on commit 1f3a687

Please sign in to comment.