mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-25 01:32:08 +01:00
32 lines
672 B
PHP
32 lines
672 B
PHP
<?php
|
|
|
|
namespace AppBundle\Command;
|
|
|
|
use AppBundle\Indexation\Talks\Runner;
|
|
use Symfony\Component\Console\Command\Command;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
|
class IndexTalksCommand extends Command
|
|
{
|
|
/** @var Runner */
|
|
private $runner;
|
|
|
|
public function __construct(Runner $runner)
|
|
{
|
|
parent::__construct(null);
|
|
$this->runner = $runner;
|
|
}
|
|
|
|
protected function configure()
|
|
{
|
|
$this
|
|
->setName('indexing:talks');
|
|
}
|
|
|
|
protected function execute(InputInterface $input, OutputInterface $output)
|
|
{
|
|
$this->runner->run();
|
|
}
|
|
}
|