1 | <?php |
||
9 | class Module implements ConsoleBannerProviderInterface, ConsoleUsageProviderInterface |
||
10 | { |
||
11 | /** |
||
12 | * Initialize autoloader |
||
13 | */ |
||
14 | 1 | public function init() |
|
18 | |||
19 | /** |
||
20 | * Get config |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | 1 | public function getConfig() |
|
28 | |||
29 | /** |
||
30 | * Get the autoloader for annotations. |
||
31 | * |
||
32 | * @param string $class |
||
33 | * @return bool |
||
34 | */ |
||
35 | 1 | public function annotationAutoloader($class) |
|
36 | { |
||
37 | 1 | if (strpos($class, 'mxdiModule\\Annotation') !== false) { |
|
38 | 1 | $file = substr($class, strrpos($class, '\\')+1); |
|
39 | 1 | require_once sprintf('%s/Annotation/%s.php', __DIR__, $file); |
|
40 | 1 | return true; |
|
41 | } |
||
42 | |||
43 | 1 | return false; |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 1 | public function getConsoleBanner(AdapterInterface $console) |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | 1 | public function getConsoleUsage(AdapterInterface $console) |
|
64 | } |
||
65 |