PHP Class Pimcore\Console\AbstractCommand

Inheritance: extends Symfony\Component\Console\Command\Command
Show file Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Property Type Description
$dumper Pimcore\Console\Dumper
$input Symfony\Component\Console\Input\InputInterface
$logger Psr\Log\LoggerInterface
$output Symfony\Component\Console\Output\ConsoleOutput

Protected Methods

Method Description
disableLogging ( )
dump ( mixed $data, null | integer $flags = null )
dumpVerbose ( mixed $data, null | integer $flags = null )
getLogLevel ( ) : null | string Get log level - default to warning, but show all messages in verbose mode
getLogger ( ) : Logger | Psr\Log\LoggerInterface
initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
initializeLogging ( ) Initialize logging
writeError ( $message )

Method Details

disableLogging() protected method

protected disableLogging ( )

dump() protected method

protected dump ( mixed $data, null | integer $flags = null )
$data mixed
$flags null | integer

dumpVerbose() protected method

protected dumpVerbose ( mixed $data, null | integer $flags = null )
$data mixed
$flags null | integer

getLogLevel() protected method

Get log level - default to warning, but show all messages in verbose mode
protected getLogLevel ( ) : null | string
return null | string

getLogger() protected method

protected getLogger ( ) : Logger | Psr\Log\LoggerInterface
return Monolog\Logger | Psr\Log\LoggerInterface

initialize() protected method

protected initialize ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

initializeLogging() protected method

Initialize logging
protected initializeLogging ( )

writeError() protected method

protected writeError ( $message )
$message

Property Details

$dumper protected property

protected Dumper,Pimcore\Console $dumper
return Pimcore\Console\Dumper

$input protected property

protected InputInterface,Symfony\Component\Console\Input $input
return Symfony\Component\Console\Input\InputInterface

$logger protected property

protected LoggerInterface,Psr\Log $logger
return Psr\Log\LoggerInterface

$output protected property

protected ConsoleOutput,Symfony\Component\Console\Output $output
return Symfony\Component\Console\Output\ConsoleOutput