OutgoingCommand

Extends \Symfony\Component\Console\Command\Command

Class OutgoingCommand provides handling of Incoming FPM request to Outgoing CLI GuzzleHttp

package

App\Command

Methods

OutgoingCommand constructor to implement LoggerInterface and parent()

__construct(null $name = NULL, \Psr\Log\LoggerInterface $logger, \Doctrine\ORM\EntityManagerInterface $em, \Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface $params) 

Arguments

$name

null

$logger

\Psr\Log\LoggerInterface

$em

\Doctrine\ORM\EntityManagerInterface

$params

\Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface

Configure options for command description

configure() 

Execute the Command using InputInterface and OutputInterface

execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : void

Arguments

$input

\Symfony\Component\Console\Input\InputInterface

$output

\Symfony\Component\Console\Output\OutputInterface

Properties

Symfony Command name available to php bin/console

defaultName : string
static
var

Type(s)

string

PSR Compliant Logger feature integrated with application main log file

logger : \Psr\Log\LoggerInterface
var

Type(s)

\Psr\Log\LoggerInterface

Entity Manager provided by ./config/services.yaml auto-wiring services

em : \Doctrine\ORM\EntityManagerInterface
var

Type(s)

\Doctrine\ORM\EntityManagerInterface

Application parameters from configuration files

params : \Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface
var

Type(s)

\Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface