Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 513e012

Browse filesBrowse files
authored
Fix typo
1 parent 2759fd3 commit 513e012
Copy full SHA for 513e012

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎service_container/service_decoration.rst

Copy file name to clipboardExpand all lines: service_container/service_decoration.rst
+7-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.