| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | function init() : void |
||
| 25 | { |
||
| 26 | if(!class_exists('\AppLocalize\Localization')) { |
||
| 27 | return; |
||
| 28 | } |
||
| 29 | |||
| 30 | $installFolder = realpath(__DIR__.'/../'); |
||
| 31 | |||
| 32 | // Register the classes as a localization source, |
||
| 33 | // so they can be found, and use the bundled localization |
||
| 34 | // files. |
||
| 35 | \AppLocalize\Localization::addSourceFolder( |
||
| 36 | 'mailcode', |
||
| 37 | 'Mailcode Syntax Parser', |
||
| 38 | 'Composer Packages', |
||
| 39 | $installFolder.'/localization', |
||
| 40 | $installFolder.'/src' |
||
| 41 | ); |
||
| 45 |