Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public static function initExtension() { |
||
17 | |||
18 | // must NOT use ExtensionRegistry::getInstance() to avoid recursion! |
||
19 | $registry = new ExtensionRegistry(); |
||
20 | $registry->load( $GLOBALS[ 'wgExtensionDirectory' ] . '/Lingo/extension.json' ); |
||
21 | |||
22 | $GLOBALS[ 'wgexLingoBackend' ] = 'SG\LingoBackendAdapter'; |
||
23 | |||
24 | $GLOBALS[ 'wgExtensionFunctions' ][] = function () { |
||
25 | |||
26 | $hookRegistry = new HookRegistry( |
||
27 | ApplicationFactory::getInstance()->getStore() |
||
28 | ); |
||
29 | |||
30 | $hookRegistry->register(); |
||
31 | }; |
||
32 | } |
||
33 | |||
49 |