1 | <?php |
||
12 | class ApplicationFactory |
||
13 | { |
||
14 | const NAME = 'openl10n'; |
||
15 | |||
16 | const VERSION = '@package_version@'; |
||
17 | |||
18 | const CONFIG_FILENAME = '.openl10n.yml'; |
||
19 | |||
20 | /** |
||
21 | * Create the application. |
||
22 | * |
||
23 | * @return Application |
||
24 | */ |
||
25 | public function createApplication() |
||
39 | |||
40 | /** |
||
41 | * @return array The default commands |
||
42 | */ |
||
43 | protected function getDefaultCommands() |
||
51 | |||
52 | /** |
||
53 | * @return array The default extensions |
||
54 | */ |
||
55 | protected function getDefaultExtensions() |
||
65 | |||
66 | /** |
||
67 | * @return ConfigurationLoader The configuration loader |
||
68 | */ |
||
69 | protected function createConfigurationLoader() |
||
73 | |||
74 | /** |
||
75 | * @return ExtensionManager The extension manager |
||
76 | */ |
||
77 | public function createExtensionManager() |
||
81 | |||
82 | /** |
||
83 | * @return EventDispatcher An EventDispatcher |
||
84 | */ |
||
85 | private function createEventDispatcher() |
||
89 | } |
||
90 |