Skip to content

Commit 1f3a687

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

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

book/routing.rst

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy