Skip to content

Cleaning up di definitions #1335

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

Merged
Merged
Changes from all commits
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
7 changes: 0 additions & 7 deletions components/dependency_injection/definitions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ Class
First up is the class of a definition, this is the class of the object returned
when the service is requested from the container.

You may want to change the class used by a definition, if for example there is
functionality which can only be used if a service from another bundle exists
then you may have a class which make use of that other service and one that
does not. The one that does not could be used for the service and then the
one with the extra functionality swapped in using a compiler pass if the other
service is available.

To find out what class is set for a definition::

$definition->getClass();
Expand Down