Skip to content
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

fix code block syntax #9255

Merged
merged 1 commit into from
Feb 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -975,19 +975,19 @@ for classes under the same namespace:
In order to have multiple definitions, add the ``namespace`` option and use any
unique string as the key of each service config:

.. code-block:: yaml
.. code-block:: yaml

# app/config/services.yml
services:
command_handlers:
namespace: App\Domain\
resource: '../../src/Domain/*/CommandHandler'
tags: [command_handler]

event_subscribers:
namespace: App\Domain\
resource: '../../src/Domain/*/EventSubscriber'
tags: [event_subscriber]
# app/config/services.yml
services:
command_handlers:
namespace: App\Domain\
resource: '../../src/Domain/*/CommandHandler'
tags: [command_handler]

event_subscribers:
namespace: App\Domain\
resource: '../../src/Domain/*/EventSubscriber'
tags: [event_subscriber]

.. _services-explicitly-configure-wire-services:

Expand Down