| Conditions | 3 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function checkContribLibs() |
||
| 24 | { |
||
| 25 | // avoid diuble class |
||
| 26 | static $done = false; |
||
| 27 | if ($done === true) { |
||
| 28 | return; |
||
| 29 | } |
||
| 30 | $done = true; |
||
| 31 | |||
| 32 | // include libs loader |
||
| 33 | $autoloaderFile = ExtensionManagementUtility::extPath( |
||
| 34 | 'shopize', |
||
| 35 | 'Resources/Private/Contrib/vendor/autoload.php' |
||
| 36 | ); |
||
| 37 | if (!is_file($autoloaderFile)) { |
||
| 38 | throw new Exception( |
||
| 39 | 'You have to run "cd typo3conf/ext/shopize/Resources/Private/Contrib/ && composer install"!', |
||
| 40 | 12367812 |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | GeneralUtility::requireFile($autoloaderFile); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |