8 use Magento\Framework\FileSystem\Directory\ReadFactory;
34 $this->reader = $readFactory->create(
BP);
49 if (!$this->reader->isExist($basePackageComposerFilePath)) {
50 throw new \Magento\Setup\Exception(
51 'Could not locate ' . self::MAGENTO_BASE_PACKAGE_COMPOSER_JSON_FILE .
' file.' 54 if (!$this->reader->isReadable($basePackageComposerFilePath)) {
55 throw new \Magento\Setup\Exception(
56 'Could not read ' . self::MAGENTO_BASE_PACKAGE_COMPOSER_JSON_FILE .
' file.' 61 $composerJsonFileData = json_decode($this->reader->readFile($basePackageComposerFilePath),
true);
62 if (!isset($composerJsonFileData[self::COMPOSER_KEY_EXTRA][self::COMPOSER_KEY_MAP])) {
63 return $filesPathList;
66 foreach ($extraMappings as
$map) {
67 $filesPathList[] =
$map[1];
69 return $filesPathList;
const MAGENTO_BASE_PACKAGE_COMPOSER_JSON_FILE
if(!file_exists(VENDOR_PATH)) $vendorDir
__construct(ReadFactory $readFactory)