Skip to content

Commit 61e6424

Browse files
oshmyheliukBohdan Korablov
authored andcommitted
MAGECLOUD-1491: Error Messages for Config Scanner Improvement (#136)
1 parent a322b06 commit 61e6424

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/Command/ConfigDump.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class ConfigDump extends Command
1818
{
19-
const NAME = 'dump';
19+
const NAME = 'config:dump';
2020

2121
/**
2222
* @var LoggerInterface
@@ -46,7 +46,8 @@ public function __construct(ProcessInterface $process, LoggerInterface $logger)
4646
protected function configure()
4747
{
4848
$this->setName(static::NAME)
49-
->setDescription('Dump static content');
49+
->setDescription('Dump configuration for static content deployment.')
50+
->setAliases(['dump']);
5051

5152
parent::configure();
5253
}

src/Config/Validator/Build/ConfigFileStructure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function validate(): Validator\ResultInterface
7272
PHP_EOL,
7373
[
7474
'To speed up the deploy process, please run the following commands:',
75-
'1. bin/magento app:config:dump',
75+
'1. php ./vendor/bin/ece-tools config:dump',
7676
'2. git add -f app/etc/config.php',
7777
'3. git commit -m \'Updating config.php\'',
7878
'4. git push'

src/Test/Unit/Config/Validator/Build/ConfigFileStructureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function testRunScdConfigNotExists()
126126
[
127127
'error' => 'No stores/website/locales found in config.php',
128128
'suggestion' => 'To speed up the deploy process, please run the following commands:' . PHP_EOL
129-
. '1. bin/magento app:config:dump' . PHP_EOL
129+
. '1. php ./vendor/bin/ece-tools config:dump' . PHP_EOL
130130
. '2. git add -f app/etc/config.php' . PHP_EOL
131131
. '3. git commit -m \'Updating config.php\'' . PHP_EOL
132132
. '4. git push'

0 commit comments

Comments
 (0)