8000 minor #10087 Fixed some wrong examples about service config (javiereg… · symfony/symfony-docs@6855b98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6855b98

Browse files
committed
minor #10087 Fixed some wrong examples about service config (javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Fixed some wrong examples about service config Commits ------- 679cc27 Fixed some wrong examples about service config
2 parents 1800be8 + 679cc27 commit 6855b98

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

service_container.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -880,27 +880,27 @@ for classes under the same namespace:
880880

881881
.. code-block:: yaml
882882
883-
# app/config/services.yml
883+
# config/services.yaml
884884
services:
885885
App\Domain\:
886-
resource: '../../src/Domain/*'
886+
resource: '../src/Domain/*'
887887
# ...
888888
889889
In order to have multiple definitions, add the ``namespace`` option and use any
890890
unique string as the key of each service config:
891891

892892
.. code-block:: yaml
893893
894-
# app/config/services.yml
894+
# config/services.yaml
895895
services:
896896
command_handlers:
897897
namespace: App\Domain\
898-
resource: '../../src/Domain/*/CommandHandler'
898+
resource: '../src/Domain/*/CommandHandler'
899899
tags: [command_handler]
900900
901901
event_subscribers:
902902
namespace: App\Domain\
903-
resource: '../../src/Domain/*/EventSubscriber'
903+
resource: '../src/Domain/*/EventSubscriber'
904904
tags: [event_subscriber]
905905
906906
.. _services-explicitly-configure-wire-services:

service_container/service_subscribers_locators.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@ service type to a service.
202202

203203
.. code-block:: yaml
204204
205-
// app/config/services.yml
205+
// config/services.yaml
206206
services:
207207
App\CommandBus:
208208
tags:
209209
- { name: 'container.service_subscriber', key: 'logger', id: 'monolog.logger.event' }
210210
211211
.. code-block:: xml
212212
213-
<!-- app/config/services.xml -->
213+
<!-- config/services.xml -->
214214
<?xml version="1.0" encoding="UTF-8" ?>
215215
<container xmlns="http://symfony.com/schema/dic/services"
216216
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -227,7 +227,7 @@ service type to a service.
227227
228228
.. code-block:: php
229229
230-
// app/config/services.php
230+
// config/services.php
231231
use App\CommandBus;
232232
233233
// ...

0 commit comments

Comments
 (0)
0