-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbstractLoader.php
More file actions
24 lines (19 loc) · 773 Bytes
/
AbstractLoader.php
File metadata and controls
24 lines (19 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
namespace MerapiPanel\Box\Module {
use MerapiPanel\Box\Container;
use MerapiPanel\Box\Module\Entity\Fragment;
use MerapiPanel\Box\Module\Entity\Module;
abstract class AbstractLoader
{
protected string $directory;
abstract function __construct(string $directory);
abstract function loadModule(string $name, Container $container): Module|bool;
abstract function loadFragment(string $name, Module|Fragment $parent): Fragment|null;
abstract function initialize(Container $container): void;
/**
* Summary of getListModule
* @return array<string, string> list active module key is dirname and value is full path
*/
abstract function getListModule(): array;
}
}