Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use the short Yaml syntax for service definition #7860

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

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Remove a tip
  • Loading branch information
GuilhemN committed May 2, 2017
commit 5c36991f0da1cf53b7c45217ea6940a7f3d75361
21 changes: 0 additions & 21 deletions 21 service_container/tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -356,27 +356,6 @@ To answer this, change the service declaration:
Support for the compact tag notation in the YAML format was introduced
in Symfony 3.3.

.. tip::

In YAML format, you may define a service with a simple array of tags as long
as you don't need additional attributes. The following definitions are
equivalent.

.. code-block:: yaml

services:

# Compact syntax
AppBundle\Twig\AppExtension: [twig.extension]

# Verbose syntax
AppBundle\Twig\AppExtension:
tags: [twig.extension]

.. versionadded:: 3.3
Support for the short syntax for service definition in the YAML format
was introduced in Symfony 3.3.

Notice that you've added a generic ``alias`` key to the tag. To actually
use this, update the compiler::

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.