Skip to content

Commit

Permalink
Fix composer.json req
Browse files Browse the repository at this point in the history
  • Loading branch information
Danila Tarasov committed Jan 17, 2018
1 parent a0f6010 commit 03c2a68
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Block/Extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ protected function _getModuleInfo($moduleCode)
{
$dir = $this->moduleReader->getModuleDir('', $moduleCode);
$file = $dir . DIRECTORY_SEPARATOR . 'composer.json';

$string = $this->filesystem->fileGetContents($file);
$json = $this->jsonDecoder->decode($string);

return $json;
try {
$string = $this->filesystem->fileGetContents($file);
} catch (\Magento\Framework\Exception\FileSystemException $e) {
return null;
}
return $this->jsonDecoder->decode($string);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mygento/base",
"type": "magento2-module",
"version": "2.2.6",
"version": "2.2.7",
"license": "OSL-3.0",
"homepage": "https://github.com/mygento/base",
"description": "Mygento Base",
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Mygento_Base" setup_version="2.2.6"></module>
<module name="Mygento_Base" setup_version="2.2.7"></module>
</config>

0 comments on commit 03c2a68

Please sign in to comment.