Skip to content

Commit 2dc8eb2

Browse files
committed
minor #9883 Change code file location (ismail1432, javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- Change code file location I don't know if it's a "mistake", but common practices is to define services in `app/config/services.yml` <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 9960f0c Fixed some wrong file paths 8e2ff4a Change code file location
2 parents 4b664d0 + 9960f0c commit 2dc8eb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

console/commands_as_services.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ with ``console.command``:
2525

2626
.. code-block:: yaml
2727
28-
# app/config/config.yml
28+
# app/config/services.yml
2929
services:
3030
app.command.my_command:
3131
class: AppBundle\Command\MyCommand
@@ -34,7 +34,7 @@ with ``console.command``:
3434
3535
.. code-block:: xml
3636
37-
<!-- app/config/config.xml -->
37+
<!-- app/config/services.xml -->
3838
<?xml version="1.0" encoding="UTF-8" ?>
3939
<container xmlns="http://symfony.com/schema/dic/services"
4040
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -52,7 +52,7 @@ with ``console.command``:
5252
5353
.. code-block:: php
5454
55-
// app/config/config.php
55+
// app/config/services.php
5656
use AppBundle\Command\MyCommand;
5757
5858
$container

0 commit comments

Comments
 (0)