| 1 | <?php |
||
| 21 | class LoaderResolver implements LoaderResolverInterface |
||
| 22 | { |
||
| 23 | private $loaders = []; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor |
||
| 27 | * |
||
| 28 | * @param LoaderInterface[] The list of loaders |
||
| 29 | * |
||
| 30 | * @throws InvalidArgumentException If the Array of loaders is empty or null |
||
| 31 | */ |
||
| 32 | public function __construct(array $loaders) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function resolveLoader(string $resource, string $type = null) : ?LoaderInterface |
||
| 50 | |||
| 51 | private function loadLoaders(array $loaders) : void |
||
| 61 | |||
| 62 | private function loadLoader(LoaderInterface $loader) : void |
||
| 67 | } |
||
| 68 |