1 | <?php |
||
7 | class Autoloader_Handler { |
||
8 | |||
9 | /** |
||
10 | * The Hook_Manager instance. |
||
11 | * |
||
12 | * @var Hook_Manager |
||
13 | */ |
||
14 | private $hook_manager; |
||
15 | |||
16 | /** |
||
17 | * The Manifest_Reader instance. |
||
18 | * |
||
19 | * @var Manifest_Reader |
||
20 | */ |
||
21 | private $manifest_reader; |
||
22 | |||
23 | /** |
||
24 | * The Version_Selector instance. |
||
25 | * |
||
26 | * @var Version_Selector |
||
27 | */ |
||
28 | private $version_selector; |
||
29 | |||
30 | /** |
||
31 | * The constructor. |
||
32 | * |
||
33 | * @param Hook_Manager $hook_manager The Hook_Manager instance. |
||
34 | * @param Manifest_Reader $manifest_reader The Manifest_Reader instance. |
||
35 | * @param Version_Selector $version_selector The Version_Selector instance. |
||
36 | */ |
||
37 | public function __construct( $hook_manager, $manifest_reader, $version_selector ) { |
||
42 | |||
43 | /** |
||
44 | * Creates an autoloader using the given plugins and activates it. |
||
45 | * |
||
46 | * @param string[] $plugins The plugins to initialize the autoloader for. |
||
47 | */ |
||
48 | public function create_autoloader( $plugins ) { |
||
71 | |||
72 | /** |
||
73 | * Resets the active autoloader and all related global state. |
||
74 | */ |
||
75 | public function reset_autoloader() { |
||
83 | } |
||
84 |