Skip to content

Commit aacdeaa

Browse files
committed
Merge pull request #1716 from richardmiller/adding_notes_on_framework_differences
Adding some notes on differences when using the full stack framework to ...
2 parents f08f0a8 + 042ed30 commit aacdeaa

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

components/dependency_injection/compilation.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ will then be called when the container is compiled::
275275
$container = new ContainerBuilder();
276276
$container->addCompilerPass(new CustomCompilerPass);
277277

278+
.. note::
279+
280+
Compiler passes are registered differently is you are using the full
281+
stack framework, see :doc:`cookbook/service_container/compiler_passes`
282+
for more details.
283+
278284
Controlling the Pass Ordering
279285
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
280286

@@ -418,3 +424,8 @@ constructor argument. When the cache is not in debug mode the cached container
418424
will always be used if it exists. In debug mode, an additional metadata file
419425
is written with the timestamps of all the resource files. These are then checked
420426
to see if the files have changed, if they have the cache will be considered stale.
427+
428+
.. note::
429+
430+
In the full stack framework the compilation and caching of the container
431+
is taken care of for you.

components/dependency_injection/tags.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,16 @@ run when the container is compiled::
158158
$container = new ContainerBuilder();
159159
$container->addCompilerPass(new TransportCompilerPass);
160160

161+
.. note::
162+
163+
Compiler passes are registered differently is you are using the full
164+
stack framework, see :doc:`cookbook/service_container/compiler_passes`
165+
for more details.
166+
161167
Adding additional attributes on Tags
162168
------------------------------------
163169

164-
Sometimes you need additional information about each service that's tagged with your tag.
170+
Sometimes you need additional information about each service that's tagged with your tag.
165171
For example, you might want to add an alias to each TransportChain.
166172

167173
To begin with, change the ``TransportChain`` class::
@@ -212,7 +218,7 @@ To answer this, change the service declaration:
212218
class: \Swift_SendmailTransport
213219
tags:
214220
- { name: acme_mailer.transport, alias: bar }
215-
221+
216222
217223
.. code-block:: xml
218224
@@ -224,7 +230,7 @@ To answer this, change the service declaration:
224230
<service id="acme_mailer.transport.sendmail" class="\Swift_SendmailTransport">
225231
<tag name="acme_mailer.transport" alias="bar" />
226232
</service>
227-
233+
228234
Notice that you've added a generic ``alias`` key to the tag. To actually
229235
use this, update the compiler::
230236

0 commit comments

Comments
 (0)