1 | <?php |
||
23 | class Loader implements LoaderInterface |
||
24 | { |
||
25 | |||
26 | |||
27 | /** |
||
28 | * @var LoaderInterface $new_loader |
||
29 | */ |
||
30 | private $new_loader; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @var LoaderInterface $shared_loader |
||
35 | */ |
||
36 | private $shared_loader; |
||
37 | |||
38 | |||
39 | |||
40 | /** |
||
41 | * Loader constructor. |
||
42 | * |
||
43 | * @param LoaderInterface|null $new_loader |
||
44 | * @param LoaderInterface|null $shared_loader |
||
45 | * @throws InvalidInterfaceException |
||
46 | * @throws InvalidArgumentException |
||
47 | * @throws InvalidDataTypeException |
||
48 | */ |
||
49 | public function __construct(LoaderInterface $new_loader = null, LoaderInterface $shared_loader = null) |
||
65 | |||
66 | |||
67 | |||
68 | /** |
||
69 | * @return LoaderInterface |
||
70 | */ |
||
71 | public function getNewLoader() |
||
75 | |||
76 | |||
77 | |||
78 | /** |
||
79 | * @return LoaderInterface |
||
80 | */ |
||
81 | public function getSharedLoader() |
||
85 | |||
86 | |||
87 | |||
88 | /** |
||
89 | * @param string $fqcn |
||
90 | * @param array $arguments |
||
91 | * @param bool $shared |
||
92 | * @return mixed |
||
93 | */ |
||
94 | public function load($fqcn, $arguments = array(), $shared = true) |
||
100 | |||
101 | } |
||
102 | // End of file Loader.php |
||
103 | // Location: EventEspresso\core\services\loaders/Loader.php |