From 26415e20393a5dacf80ae8a634ca05ea74530456 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Tue, 27 Jan 2015 09:41:14 +0200 Subject: [PATCH] Remove block which doesn't make sense after best practices | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | --- .../dependency_injection/parameters.rst | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/components/dependency_injection/parameters.rst b/components/dependency_injection/parameters.rst index 8e76c4dd615..1ceb887a138 100644 --- a/components/dependency_injection/parameters.rst +++ b/components/dependency_injection/parameters.rst @@ -140,49 +140,6 @@ rather than being tied up and hidden with the service definition: If you were using this elsewhere as well, then you would only need to change the parameter value in one place if needed. -You can also use the parameters in the service definition, for example, -making the class of a service a parameter: - -.. configuration-block:: - - .. code-block:: yaml - - parameters: - mailer.transport: sendmail - - services: - mailer: - class: Mailer - arguments: ["%mailer.transport%"] - - .. code-block:: xml - - - - - - sendmail - - - - - %mailer.transport% - - - - - .. code-block:: php - - use Symfony\Component\DependencyInjection\Reference; - - $container->setParameter('mailer.transport', 'sendmail'); - - $container - ->register('mailer', 'Mailer') - ->addArgument('%mailer.transport%'); - .. note:: The percent sign inside a parameter or argument, as part of the string, must