Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f3a687

Browse filesBrowse files
committed
Merge pull request symfony#2726 from WouterJ/issue_2719
Fixed deprecated route methods
2 parents 28f4ae7 + 041df67 commit 1f3a687
Copy full SHA for 1f3a687

File tree

Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed

‎book/routing.rst

Copy file name to clipboardExpand all lines: book/routing.rst
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,11 @@ instead of simply ``/hello/{name}``:
10261026
use Symfony\Component\Routing\RouteCollection;
10271027
10281028
$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);
10301034
10311035
return $collection;
10321036

‎cookbook/routing/service_container_parameters.rst

Copy file name to clipboardExpand all lines: cookbook/routing/service_container_parameters.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ in your container:
7575
7676
.. code-block:: php
7777
78-
# app/config/config.php
78+
// app/config/config.php
7979
$container->setParameter('acme_demo.locales', 'en|es');
8080
8181
You can also use a parameter to define your route path (or part of your

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.