Console application sample
use Symfony The Console Component, Zend ServiceManager
use config/config.yaml
name: php-console-app
version: "1.0.0"
commands:
- Irihit\Console\Command\HelloWorldCommand
use config/factory.php
return [
'services' => [
],
'factories' => [
// Command Factories
\Irihit\Console\Command\HelloWorldCommand::class
=> \Irihit\Console\Command\HelloWorldCommandFactory::class,
],
'invokables' => [
],
'aliases' => [
],
'shared' => [
],
'shared_by_default' => false,
];
php console hello-world