PHP Interface Resque\Logger\Handler\Connector\ConnectorInterface

Author: Michael Haynes ([email protected])
ファイルを表示 Open project: mjphaynes/php-resque

Public Methods

Method Description
processor ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args ) : Callable Returns the processor for this handler
replacePlaceholders ( string $string ) : string Replaces all instances of [%host%, %worker%, %pid%, %date%, %time%] in logger target key so can be unique log per worker
resolve ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args ) : HandlerInterface Resolves the handler class

Method Details

processor() public method

Returns the processor for this handler
public processor ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args ) : Callable
$command Symfony\Component\Console\Command\Command
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$args array
return Callable

replacePlaceholders() public method

Replaces all instances of [%host%, %worker%, %pid%, %date%, %time%] in logger target key so can be unique log per worker
public replacePlaceholders ( string $string ) : string
$string string Input string
return string

resolve() public method

Resolves the handler class
public resolve ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args ) : HandlerInterface
$command Symfony\Component\Console\Command\Command
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$args array
return HandlerInterface