| 1 | <?php |
||
| 18 | class ChainLoaderFactory extends AbstractLoaderFactory |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | public function create(ContainerBuilder $container, $loaderName, array $config): string |
||
| 24 | { |
||
| 25 | $definition = $this->getChildLoaderDefinition(); |
||
| 26 | $definition->replaceArgument(0, $this->createLoaderReferences($config['loaders'])); |
||
| 27 | |||
| 28 | return $this->setTaggedLoaderDefinition($loaderName, $definition, $container); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function getName(): string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function addConfiguration(ArrayNodeDefinition $builder): void |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param string[] $loaders |
||
| 57 | * |
||
| 58 | * @return string[] |
||
| 59 | */ |
||
| 60 | private function createLoaderReferences(array $loaders): array |
||
| 66 | } |
||
| 67 |