Resque\Logger\Handler\Connector\AmqpConnector::resolve PHP Метод

resolve() публичный Метод

public resolve ( Command $command, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, array $args )
$command Symfony\Component\Console\Command\Command
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$args array
    public function resolve(Command $command, InputInterface $input, OutputInterface $output, array $args)
    {
        $options = array_merge(array('host' => 'localhost', 'port' => 5763, 'login' => null, 'password' => null), $args);
        $conn = new \AMQPConnection($options);
        $conn->connect();
        $channel = new \AMQPChannel($conn);
        return new AmqpHandler(new \AMQPExchange($channel), $this->replacePlaceholders($args['name']));
    }
AmqpConnector