Skip to content

Conversation

joelclermont
Copy link
Contributor

Q A
Doc fix? yes
New docs? yes
Applies to all
Fixed tickets #1707

Based on our discussion in IRC, instead of describing how to use strict=false, I linked to the cookbook article on Scopes for the recommended solutions.


It can be useful to pass other services in as arguments to your custom service.
For example, you may want to pass in the `request` service as an argument.
In these cases, you may receive a `ScopeWideningInjectionException`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you must use double backticks to indicate an inline code block

@joelclermont
Copy link
Contributor Author

Oops, so hard to shake my Markdown brain. Fixed.

In these cases, you may receive a ``ScopeWideningInjectionException``.
To understand this problem better and learn how to solve it, refer to
the cookbook article :doc:`/cookbook/service_container/scopes` for a
few solutions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would delete "for a few solutions".

@@ -231,6 +231,14 @@ looks up the value of each parameter and uses it in the service definition.

<argument type="string">http://symfony.com/?foo=%%s&bar=%%d</argument>

.. note::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be a .. caution:: block

@weaverryan weaverryan merged commit 7b0bfac into symfony:2.0 Apr 4, 2013
@weaverryan
Copy link
Member

Hey Joel!

Nice work here - and good use of existing documentation.

Thanks!

@joelclermont joelclermont deleted the issue_1707 branch April 4, 2013 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants