We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07cd41a commit 1bd2602Copy full SHA for 1bd2602
routing/hostname_pattern.rst
@@ -260,13 +260,8 @@ You can also set the host option on imported routes:
260
261
.. code-block:: php
262
263
- use Symfony\Component\Routing\RouteCollection;
264
-
265
- $importedCollection = $loader->import("@AcmeHelloBundle/Resources/config/routing.php");
266
- $importedCollection->setHost('hello.example.com');
267
268
- $collection = new RouteCollection();
269
- $collection->addCollection($importedCollection);
+ $collection = $loader->import("@AcmeHelloBundle/Resources/config/routing.php");
+ $collection->setHost('hello.example.com');
270
271
return $collection;
272
0 commit comments