for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* ComposerUtility
*
* @author Tim Lochmüller
*/
namespace FRUIT\Shopize\Utility;
use FRUIT\Shopize\Exception;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class ComposerUtility
{
* @throws Exception
public static function checkContribLibs()
// avoid diuble class
static $done = false;
if ($done === true) {
return;
}
$done = true;
// include libs loader
$autoloaderFile = ExtensionManagementUtility::extPath(
'shopize',
'Resources/Private/Contrib/vendor/autoload.php'
);
if (!is_file($autoloaderFile)) {
throw new Exception(
'You have to run "cd typo3conf/ext/shopize/Resources/Private/Contrib/ && composer install"!',
12367812
GeneralUtility::requireFile($autoloaderFile);