Skip to content

Commit

Permalink
add links label in service container page
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYamous authored Nov 22, 2023
1 parent 7cf8d17 commit df5edb0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ in the container.
There are actually *many* more services in the container, and each service has
a unique id in the container, like ``request_stack`` or ``router.default``. For a full
list, you can run ``php bin/console debug:container``. But most of the time,
you won't need to worry about this. See :ref:`services-wire-specific-service`.
See :doc:`/service_container/debug`.
you won't need to worry about this. See :ref:`how to choose a specific service
<services-wire-specific-service>`. See :doc:`/service_container/debug`.

.. _service-container-creating-service:

Expand Down Expand Up @@ -230,10 +230,11 @@ each time you ask for it.

Thanks to this configuration, you can automatically use any classes from the
``src/`` directory as a service, without needing to manually configure
it. Later, you'll learn more about this in :ref:`service-psr4-loader`.
it. Later, you'll learn how to :ref:`import many services at once
<service-psr4-loader>` with resource.

If you'd prefer to manually wire your service, that's totally possible: see
:ref:`services-explicitly-configure-wire-services`.
If you'd prefer to manually wire your service, that's totally possible to
:ref:`use explicit configuration <services-explicitly-configure-wire-services>`.

.. _service-container_limiting-to-env:

Expand Down Expand Up @@ -840,8 +841,8 @@ argument for *any* service defined in this file! You can bind arguments by name
(e.g. ``$adminEmail``), by type (e.g. ``Psr\Log\LoggerInterface``) or both
(e.g. ``Psr\Log\LoggerInterface $requestLogger``).

The ``bind`` config can also be applied to specific services or when loading many
services at once (i.e. :ref:`service-psr4-loader`).
The ``bind`` config can also be applied to specific services or when
:ref:`loading many services at once <service-psr4-loader>`).

Abstract Service Arguments
--------------------------
Expand Down Expand Up @@ -1091,9 +1092,9 @@ key. For example, the default Symfony configuration contains this:
This can be used to quickly make many classes available as services and apply some
default configuration. The ``id`` of each service is its fully-qualified class name.
You can override any service that's imported by using its id (class name) below
(e.g. see :ref:`services-manually-wire-args`). If you override a service, none of
the options (e.g. ``public``) are inherited from the import (but the overridden
service *does* still inherit from ``_defaults``).
(e.g. see :ref:`how to manually wire arguments <services-manually-wire-args>`).
If you override a service, none of the options (e.g. ``public``) are inherited
from the import (but the overridden service *does* still inherit from ``_defaults``).

You can also ``exclude`` certain paths. This is optional, but will slightly increase
performance in the ``dev`` environment: excluded paths are not tracked and so modifying
Expand Down

0 comments on commit df5edb0

Please sign in to comment.