1 | <?php |
||
18 | class ApiDocuExtension extends CompilerExtension |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $config; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | private $defaults = [ |
||
30 | 'apiDir' => '%wwwDir%/api', |
||
31 | 'httpAuth' => [ |
||
32 | 'user' => null, |
||
33 | 'password' => null, |
||
34 | ], |
||
35 | ]; |
||
36 | |||
37 | |||
38 | public function loadConfiguration(): void |
||
39 | { |
||
40 | $this->config = $this->_getConfig(); |
||
41 | } |
||
42 | |||
43 | |||
44 | public function beforeCompile(): void |
||
60 | |||
61 | |||
62 | protected function _getConfig(): array |
||
73 | } |
||
74 |