PhpBench\Console\Command\Handler\DumpHandler::configure PHP 메소드

configure() 공개 정적인 메소드

public static configure ( Command $command )
$command Symfony\Component\Console\Command\Command
    public static function configure(Command $command)
    {
        $command->addOption('dump-file', 'd', InputOption::VALUE_OPTIONAL, 'Dump XML result to named file');
        $command->addOption('dump', null, InputOption::VALUE_NONE, 'Dump XML result to stdout and suppress all other output');
    }

Usage Example

예제 #1
0
    public function configure()
    {
        $this->setName('report');
        $this->setDescription('Generate a report from storage or an XML file');
        $this->setHelp(<<<'EOT'
Generate report from the latest stored suite:

    $ %command.full_name% --uuid=latest --report=aggregate

Generate report from a UUID (as determined from the <info>log</info> command:

    $ %command.full_name% --uuid=133a2605fac74edabf046edeb9c5f7c4dc1a3aac --report=aggregate

Generate from a query:

    $ %command.full_name% --query='benchmark: "MyBench"' --report=aggregate

Generate from an XML file:

    $ %command.full_name% --file=dump.xml

To dump an XML file, use the <info>run</info> command with the
<comment>dump-file</comment> option.

You can specify the options multiple times to compare multiple suites.
EOT
);
        ReportHandler::configure($this);
        TimeUnitHandler::configure($this);
        SuiteCollectionHandler::configure($this);
        DumpHandler::configure($this);
    }
All Usage Examples Of PhpBench\Console\Command\Handler\DumpHandler::configure