Skip to content

Commit da51a30

Browse files
committed
minor symfony#10941 Fix typo (hason)
This PR was merged into the 3.4 branch. Discussion ---------- Fix typo Commits ------- 513e012 Fix typo
2 parents bde0cd9 + 513e012 commit da51a30

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

service_container/service_decoration.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,17 +225,17 @@ the ``decoration_priority`` option. Its value is an integer that defaults to
225225
// config/services.php
226226
use Symfony\Component\DependencyInjection\Reference;
227227
228-
$container->register(Foo:class)
228+
$container->register(Foo::class)
229229
230-
$container->register(Bar:class)
231-
->addArgument(new Reference(Bar:class.'.inner'))
230+
$container->register(Bar::class)
231+
->addArgument(new Reference(Bar::class.'.inner'))
232232
->setPublic(false)
233-
->setDecoratedService(Foo:class, null, 5);
233+
->setDecoratedService(Foo::class, null, 5);
234234
235-
$container->register(Baz:class)
236-
->addArgument(new Reference(Baz:class.'.inner'))
235+
$container->register(Baz::class)
236+
->addArgument(new Reference(Baz::class.'.inner'))
237237
->setPublic(false)
238-
->setDecoratedService(Foo:class, null, 1);
238+
->setDecoratedService(Foo::class, null, 1);
239239
240240
The generated code will be the following::
241241

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy