From 679cc27459436d8a5106ac41e9e09739a2245c73 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 18 Jul 2018 17:10:42 +0200 Subject: [PATCH] Fixed some wrong examples about service config --- service_container.rst | 10 +++++----- service_container/service_subscribers_locators.rst | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/service_container.rst b/service_container.rst index a7a445c8e9d..d8f1dbb8cb7 100644 --- a/service_container.rst +++ b/service_container.rst @@ -880,10 +880,10 @@ for classes under the same namespace: .. code-block:: yaml - # app/config/services.yml + # config/services.yaml services: App\Domain\: - resource: '../../src/Domain/*' + resource: '../src/Domain/*' # ... In order to have multiple definitions, add the ``namespace`` option and use any @@ -891,16 +891,16 @@ unique string as the key of each service config: .. code-block:: yaml - # app/config/services.yml + # config/services.yaml services: command_handlers: namespace: App\Domain\ - resource: '../../src/Domain/*/CommandHandler' + resource: '../src/Domain/*/CommandHandler' tags: [command_handler] event_subscribers: namespace: App\Domain\ - resource: '../../src/Domain/*/EventSubscriber' + resource: '../src/Domain/*/EventSubscriber' tags: [event_subscriber] .. _services-explicitly-configure-wire-services: diff --git a/service_container/service_subscribers_locators.rst b/service_container/service_subscribers_locators.rst index 48fcdf8f2be..8487e068d26 100644 --- a/service_container/service_subscribers_locators.rst +++ b/service_container/service_subscribers_locators.rst @@ -202,7 +202,7 @@ service type to a service. .. code-block:: yaml - // app/config/services.yml + // config/services.yaml services: App\CommandBus: tags: @@ -210,7 +210,7 @@ service type to a service. .. code-block:: xml - +