Skip to content

[DI] Added _instanceof example #8239

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 2 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
fixup comment
  • Loading branch information
HeahDude committed Aug 5, 2017
commit 519d7f6cb8902c4c68b10e8105233a33a3723a2a
8 changes: 4 additions & 4 deletions service_container/3.3-di-changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,11 @@ and add the tag. Your tag will take precedence over the one added by auto-config
5) Auto-configure with _instanceof
----------------------------------

And the final big change is ``_instanceof``, it acts as a default definition
template (see `service-33-default_definition`_), but only for service whose
And the final big change is ``_instanceof``. It acts as a default definition
template (see `service-33-default_definition`_), but only for services whose
class matches a defined one.
This can be very useful when many services shares some tag that cannot be
inherited from abstract definition:
This can be very useful when many services share some tag that cannot be
inherited from an abstract definition:

.. configuration-block::

Expand Down