Skip to content

Commit 08ff298

Browse files
committed
[DependencyInjection] Add param()
1 parent 2a89649 commit 08ff298

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/DependencyInjection/Loader/Configurator/ContainerConfigurator.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ function ref(string $id): ReferenceConfigurator
9191
return new ReferenceConfigurator($id);
9292
}
9393

94+
/**
95+
* Creates a parameter.
96+
*/
97+
function param(string $name): string
98+
{
99+
return '%'.$name.'%';
100+
}
101+
94102
/**
95103
* Creates an inline service.
96104
*

0 commit comments

Comments
 (0)