1 | <?php |
||
22 | class ChainLoader implements LoaderInterface |
||
23 | { |
||
24 | protected $loaders = []; |
||
25 | |||
26 | /** |
||
27 | * Adds a loader instance. |
||
28 | * |
||
29 | * @param LoaderInterface $loader A Loader instance |
||
30 | */ |
||
31 | public function addLoader(LoaderInterface $loader) |
||
39 | |||
40 | /** |
||
41 | * @param LoaderInterface $loader |
||
42 | * |
||
43 | * @return bool |
||
44 | */ |
||
45 | public function removeLoader(LoaderInterface $loader) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function load($type, $parameters = [], $withoutParameters = [], $responseType = LoaderInterface::SINGLE) |
||
71 | |||
72 | /** |
||
73 | * Checks if Loader supports provided type. |
||
74 | * |
||
75 | * @param string $type |
||
76 | * |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function isSupported(string $type): bool |
||
89 | } |
||
90 |