@@ -14,12 +14,18 @@ |
||
14 | 14 | Defaults::init(); |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $componentName |
|
19 | + */ |
|
17 | 20 | public static function registerComponent($componentName, $componentPath = null) |
18 | 21 | { |
19 | 22 | $componentManager = ComponentManager::getInstance(); |
20 | 23 | $componentManager->registerComponent($componentName, $componentPath); |
21 | 24 | } |
22 | 25 | |
26 | + /** |
|
27 | + * @param string $componentBasePath |
|
28 | + */ |
|
23 | 29 | public static function registerComponentsFromPath($componentBasePath) |
24 | 30 | { |
25 | 31 | foreach (glob("{$componentBasePath}/*", GLOB_ONLYDIR) as $componentPath) { |