June 2017
Intermediate to advanced
536 pages
9h 49m
English
Now that we have our barebone console application set up, let's create three commands to handle the following imaginary actions:
The word imaginary simply flags that we will not actually concern ourselves with the inner details of the executed commands, as our focus is understanding how to reuse the Console component.
We start by creating CustomerRegisterCommand.php, CustomerStatusSetCommand.php, and CustomerExportCommand.php within our project's src/Foggyline/Console/Command/ directory.
CustomerRegisterCommand.php file has the following content:
<?phpnamespace Foggyline\Console\Command;use Symfony\Component\Console\{ Command\Command, Input\InputInterface, ...