Skip to content

use .yaml instead of .yml for examples #11031

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions routing/external_resources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This can be done by importing routing resources from the main routing file:
# config/routes.yaml
app_file:
# loads routes from the given routing file stored in some bundle
resource: '@AcmeOtherBundle/Resources/config/routing.yml'
resource: '@AcmeOtherBundle/Resources/config/routing.yaml'

app_annotations:
# loads routes from the PHP annotations of the controllers found in that directory
Expand All @@ -46,7 +46,7 @@ This can be done by importing routing resources from the main routing file:
http://symfony.com/schema/routing/routing-1.0.xsd">

<!-- loads routes from the given routing file stored in some bundle -->
<import resource="@AcmeOtherBundle/Resources/config/routing.yml" />
<import resource="@AcmeOtherBundle/Resources/config/routing.yaml" />

<!-- loads routes from the PHP annotations of the controllers found in that directory -->
<import resource="../src/Controller/" type="annotation" />
Expand All @@ -66,7 +66,7 @@ This can be done by importing routing resources from the main routing file:
$routes = new RouteCollection();
$routes->addCollection(
// loads routes from the given routing file stored in some bundle
$loader->import("@AcmeOtherBundle/Resources/config/routing.yml")
$loader->import("@AcmeOtherBundle/Resources/config/routing.yaml")

// loads routes from the PHP annotations of the controllers found in that directory
$loader->import("../src/Controller/", "annotation")
Expand Down