File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ if (PHP_SAPI !== 'cli') {
2121}
2222
2323try {
24- $ application = new Application ();
24+ $ composerContents = json_decode (file_get_contents (__DIR__ . '/../composer.json ' ), true );
25+ $ version = $ composerContents ['version ' ] ?? '' ;
26+ $ name = $ composerContents ['description ' ] ?? 'Magento Semantic Version Checker ' ;
27+ $ application = new Symfony \Component \Console \Application ();
28+ $ application ->setName ($ name );
29+ $ application ->setVersion ($ version );
2530 $ application ->add (new CompareSourceCommand ());
2631 $ application ->run ();
2732} catch (\Exception $ e ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " magento/magento-semver" ,
3- "description" : " Magento semantic version checker " ,
3+ "description" : " Magento Semantic Version Checker " ,
44 "version" : " 7.0.0" ,
55 "license" : [
66 " OSL-3.0" ,
You can’t perform that action at this time.
0 commit comments