Skip to content

Commit a94be60

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
2121
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
2222
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
23+
use Symfony\Component\DependencyInjection\Parameter;
2324
use Symfony\Component\ExpressionLanguage\Expression;
2425

2526
/**
@@ -91,6 +92,14 @@ function ref(string $id): ReferenceConfigurator
9192
return new ReferenceConfigurator($id);
9293
}
9394

95+
/**
96+
* Creates a parameter.
97+
*/
98+
function param(string $id): Parameter
99+
{
100+
return new Parameter($id);
101+
}
102+
94103
/**
95104
* Creates an inline service.
96105
*

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