Skip to content

Commit

Permalink
Merge pull request #9 from b13/issue-8
Browse files Browse the repository at this point in the history
[BUGFIX] Replace "info" with "note" for symfony backwards compatibility
  • Loading branch information
o-ba authored Dec 26, 2021
2 parents c799d3d + b1e610b commit bb046ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Classes/Command/Component/SimpleComponentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if (file_exists($componentFile)
&& !$this->io->confirm('The file ' . $componentFile . ' already exists. Do you want to override it?', true)
) {
$this->io->info('Aborting component generation.');
$this->io->note('Aborting component generation.');
return 0;
}

Expand All @@ -111,11 +111,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
} catch (AbortCommandException $e) {
$this->io->info($e->getMessage());
$this->io->note($e->getMessage());
return 0;
}

$this->io->info('You might want to flush the cache now');
$this->io->note('You might want to flush the cache now');
return 0;
}

Expand Down Expand Up @@ -208,7 +208,7 @@ protected function initializeArrayConfiguration(string $file, string $directory
{
$this->arrayConfiguration = new ArrayConfiguration($this->package->getPackagePath(), $file, $directory);
if ($this->arrayConfiguration->getConfiguration() === []) {
$this->io->info('The configuration file ' . $directory . $file . ' does not yet exist. It will be automatically created.');
$this->io->note('The configuration file ' . $directory . $file . ' does not yet exist. It will be automatically created.');
}
}

Expand Down
8 changes: 4 additions & 4 deletions Classes/Command/ExtensionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if (file_exists($composerFile)
&& !$io->confirm('A composer.json does already exist. Do you want to override it?', true)
) {
$io->info('Creating composer.json skipped');
$io->note('Creating composer.json skipped');
} elseif (!GeneralUtility::writeFile($composerFile, json_encode($extension, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), true)) {
$io->error('Creating composer.json failed');
return 1;
Expand All @@ -117,7 +117,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($serviceConfiguration->getConfiguration() !== []
&& !$io->confirm('A service configuration does already exist. Do you want to override it?', true)
) {
$io->info('Creating service configuration skipped');
$io->note('Creating service configuration skipped');
} else {
$serviceConfiguration->createBasicServiceConfiguration($extension->getPsr4Prefix());
if (!$serviceConfiguration->write()) {
Expand All @@ -135,15 +135,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if (file_exists($extEmConfFile)
&& !$io->confirm('A ext_emconf.php does already exist. Do you want to override it?', true)
) {
$io->info('Creating ext_emconf.php skipped');
$io->note('Creating ext_emconf.php skipped');
} elseif (!GeneralUtility::writeFile($extEmConfFile, (string)$extension)) {
$io->error('Creating ' . $extEmConfFile . ' failed.');
return 1;
}
}

$io->success('Sucessfully created the extension ' . $extension->getExtensionKey() . ' (' . $extension->getPackageName() . ').');
$io->info('Depending on your installation, the extension now might have to be activated manually.');
$io->note('Depending on your installation, the extension now might have to be activated manually.');

return 0;
}
Expand Down

0 comments on commit bb046ec

Please sign in to comment.