1 | <?php |
||
7 | class Shutdown_Handler { |
||
8 | |||
9 | /** |
||
10 | * The Plugins_Handler instance. |
||
11 | * |
||
12 | * @var Plugins_Handler |
||
13 | */ |
||
14 | private $plugins_handler; |
||
15 | |||
16 | /** |
||
17 | * The plugins cached by this autoloader. |
||
18 | * |
||
19 | * @var string[] |
||
20 | */ |
||
21 | private $cached_plugins; |
||
22 | |||
23 | /** |
||
24 | * Indicates whether or not this autoloader was included by another. |
||
25 | * |
||
26 | * @var bool |
||
27 | */ |
||
28 | private $was_included_by_autoloader; |
||
29 | |||
30 | /** |
||
31 | * Constructor. |
||
32 | * |
||
33 | * @param Plugins_Handler $plugins_handler The Plugins_Handler instance to use. |
||
34 | * @param string[] $cached_plugins The plugins cached by the autoloaer. |
||
35 | * @param bool $was_included_by_autoloader Indicates whether or not the autoloader was included by another. |
||
36 | */ |
||
37 | public function __construct( $plugins_handler, $cached_plugins, $was_included_by_autoloader ) { |
||
42 | |||
43 | /** |
||
44 | * Handles the shutdown of the autoloader. |
||
45 | */ |
||
46 | public function __invoke() { |
||
84 | } |
||
85 |