diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-07-24 22:00:32 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-07-24 22:00:32 +0300 |
commit | 875d358efce5edb7bf459fb8f13ad0b893d0af35 (patch) | |
tree | d77a61c9bb1e9b4a52fab4aa3d43cf05392f30d0 /lib | |
parent | e5ee263a741b4ec5fd63b6894df5ed088ee4a2b8 (diff) |
conflict with some commands
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Index.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Command/Index.php b/lib/Command/Index.php index 8f360b9..6fadb0a 100644 --- a/lib/Command/Index.php +++ b/lib/Command/Index.php @@ -47,6 +47,9 @@ class Index extends ExtendedBase { /** @var IUserManager */ private $userManager; + /** @var RunningService */ + private $runningService; + /** @var IndexService */ private $indexService; @@ -81,9 +84,8 @@ class Index extends ExtendedBase { parent::__construct(); $this->userManager = $userManager; - $this->runner = new Runner($runningService, 'commandIndex'); + $this->runningService = $runningService; $this->indexService = $indexService; - $this->indexService->setRunner($this->runner); $this->platformService = $platformService; $this->providerService = $providerService; @@ -110,8 +112,13 @@ class Index extends ExtendedBase { * @throws Exception */ protected function execute(InputInterface $input, OutputInterface $output) { + $options = $this->generateIndexOptions($input); + $this->runner = new Runner($this->runningService, 'commandIndex'); + $this->indexService->setRunner($this->runner); + + try { $this->runner->sourceIsCommandLine($this, $output); $this->runner->start(); |