8000 Added some examples to the "services as parameters" section by javiereguiluz · Pull Request #3641 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added some examples to the "services as parameters" section #3641

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

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Removed the file path comments because this doc is for the component
and it should not make any reference to Symfony
  • Loading branch information
javiereguiluz committed Mar 8, 2014
commit 745f3a664e9a4b70c8680e99cad8b3ce12963385
3 changes: 0 additions & 3 deletions components/dependency_injection/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ Start the string with ``@`` or ``@?`` to reference a service in YAML.

.. code-block:: yaml

# app/config/config.yml
parameters:
# if 'my_mailer' service isn't defined, an exception will be raised
foo: @my_mailer
Expand All @@ -371,7 +370,6 @@ method call, the method call is removed).

.. code-block:: xml

<!-- app/config/config.xml -->
<parameters>
<!-- if 'my_mailer' service isn't defined, an exception will be raised -->
<parameter key="foo" type="service" id="my_mailer" />
Expand All @@ -391,7 +389,6 @@ argument and constants from

.. code-block:: php

// app/config/config.php
use Symfony\Component\DependencyInjection\Reference;

// if 'my_mailer' service isn't defined, an exception will be raised
Expand Down
0