Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MakeSerializerEncoder command. #30

Merged
merged 8 commits into from
Nov 28, 2017
Prev Previous commit
Next Next commit
MakeEncoderSerializer - changed command description.
  • Loading branch information
piotrgradzinski committed Nov 19, 2017
commit 5cfc4f814f0721eec575dc0f5250d0e012c7afc3
4 changes: 2 additions & 2 deletions src/Command/MakeSerializerEncoderCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class MakeSerializerEncoderCommand extends AbstractCommand
protected function configure()
{
$this
->setDescription('Creates a new custom encoder class')
->setDescription('Creates a new serializer encoder class')
->addArgument('name', InputArgument::OPTIONAL, 'Choose a class name for your encoder (e.g. <fg=yellow>YamlEncoder</>).')
->addArgument('format', InputArgument::OPTIONAL, 'Pick your format name (e.g. <fg=yellow>yaml</>)')
->setHelp(file_get_contents(__DIR__.'/../Resources/help/MakeSerializerEncoder.txt'))
Expand Down Expand Up @@ -60,7 +60,7 @@ protected function getFiles(array $params): array
protected function writeNextStepsMessage(array $params, ConsoleStyle $io)
{
$io->text([
'Next: Open your new encoder class and start customizing it.',
'Next: Open your new serializer encoder class and start customizing it.',
'Find the documentation at <fg=yellow>http://symfony.com/doc/current/serializer/custom_encoders.html</>'
]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/help/MakeSerializerEncoder.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The <info>%command.name%</info> command generates a new encoder class.
The <info>%command.name%</info> command generates a new serializer encoder class.

<info>php %command.full_name% YamlEncoder</info>

Expand Down