Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-07-24 22:00:32 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-07-24 22:00:32 +0300
commit875d358efce5edb7bf459fb8f13ad0b893d0af35 (patch)
treed77a61c9bb1e9b4a52fab4aa3d43cf05392f30d0 /lib
parente5ee263a741b4ec5fd63b6894df5ed088ee4a2b8 (diff)
conflict with some commands
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Command/Index.php11
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();