Skip to content

Commit dbaaf7f

Browse files
committed
Review!
1 parent 5907a00 commit dbaaf7f

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

service_container/alias_private.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. index::
22
single: DependencyInjection; Advanced configuration
33

4-
Service Aliases & Private Services
5-
==================================
4+
How to Create Service Aliases and Mark Services as Private
5+
==========================================================
66

77
.. _container-private-services:
88

service_container/configurators.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. index::
22
single: DependencyInjection; Service configurators
33

4-
Configuring Services with a Service Configurator
5-
================================================
4+
How to Configure a Service with a Configurator
5+
==============================================
66

77
The *service configurator* is a feature of the service container that allows
88
you to use a callable to configure a service after its instantiation.

service_container/definitions.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
.. index::
22
single: DependencyInjection; Service definitions
33

4-
Working with Container Service Definitions
5-
==========================================
4+
How to work with Service Definition Objects
5+
===========================================
66

77
Service definitions are the instructions describing how the container should
88
build a service. They are not the actual services used by your applications.
99
The container will create the actual class instances based on the configuration
1010
in the definition.
1111

12+
Normally, you would use YAML, XML or PHP to describe the service definitions.
13+
But if you're doing advanced things with the service container, like working
14+
with a :doc:`Compiler Pass </service_container/compiler_passes>` or creating a
15+
:doc:`Dependency Injection Extension </bundles/extension>`, you may need to
16+
work directly with the ``Definition`` objects that define how a service will be
17+
instantiated.
18+
1219
Getting and Setting Service Definitions
1320
---------------------------------------
1421

service_container/parent_services.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. index::
22
single: DependencyInjection; Parent services
33

4-
Managing Common Dependencies with Parent Services
5-
=================================================
4+
How to Manage Common Dependencies with Parent Services
5+
======================================================
66

77
As you add more functionality to your application, you may well start to
88
have related classes that share some of the same dependencies. For example,

service_container/service_decoration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. index::
22
single: Service Container; Decoration
33

4-
How to Decorating Services
5-
==========================
4+
How to Decorate Services
5+
========================
66

77
When overriding an existing definition (e.g. when applying the `Decorator pattern`_),
88
the original service is lost:

0 commit comments

Comments
 (0)