| 1 | <?php |
||
| 12 | trait ConfigTrait |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ParameterBag |
||
| 16 | */ |
||
| 17 | private $parameterBag; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @Inject("=container.getParameterBag()") |
||
| 21 | * @param ParameterBag $parameterBag |
||
| 22 | */ |
||
| 23 | 2 | public function setParameterBag(ParameterBag $parameterBag) |
|
| 24 | { |
||
| 25 | 2 | $this->parameterBag = $parameterBag; |
|
| 26 | 2 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $parameterId |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | 1 | protected function getParameter(string $parameterId) |
|
| 36 | } |
||
| 37 |