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
diff options
context:
space:
mode:
authordaita <maxence@pontapreta.net>2016-10-13 16:18:00 +0300
committerdaita <maxence@pontapreta.net>2016-10-13 16:18:00 +0300
commit146a25c2f69669433876634381d0181513f69b8e (patch)
treed2b9494409cd60d40cd441eae905bcc4bbbf0703
parent6007e67fd9fda3efb3b745c04c182ca111964a94 (diff)
removing Scan
-rw-r--r--appinfo/register_command.php1
-rw-r--r--lib/Command/Scan.php81
2 files changed, 0 insertions, 82 deletions
diff --git a/appinfo/register_command.php b/appinfo/register_command.php
index 0cdc787..b869787 100644
--- a/appinfo/register_command.php
+++ b/appinfo/register_command.php
@@ -29,7 +29,6 @@ $c = $app->getContainer();
$application->add(new OCA\Nextant\Command\Check($c->query('SolrService'), $c->query('SolrToolsService'), $c->query('SolrAdminService')));
$application->add(new OCA\Nextant\Command\Clear($c->query('ConfigService'), $c->query('SolrService'), $c->query('SolrAdminService')));
-$application->add(new OCA\Nextant\Command\Scan(OC::$server->getUserManager(), $c->query('UserFolder'), $c->query('SolrService'), $c->query('FileService')));
$application->add(new OCA\Nextant\Command\Index(OC::$server->getUserManager(), $c->query('RootFolder'), $c->query('IndexService'), $c->query('SolrService'), $c->query('SolrToolsService'), $c->query('ConfigService'), $c->query('FileService'), $c->query('MiscService')));
$application->add(new OCA\Nextant\Command\Optimize($c->query('SolrService'), $c->query('SolrToolsService')));
diff --git a/lib/Command/Scan.php b/lib/Command/Scan.php
deleted file mode 100644
index 540ca2e..0000000
--- a/lib/Command/Scan.php
+++ /dev/null
@@ -1,81 +0,0 @@
-<?php
-
-/**
- * Nextcloud - nextant
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Maxence Lange <maxence@pontapreta.net>
- * @copyright Maxence Lange 2016
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-namespace OCA\Nextant\Command;
-
-use OC\Core\Command\Base;
-use Symfony\Component\Console\Input\InputArgument;
-use Symfony\Component\Console\Input\InputInterface;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Output\OutputInterface;
-use OCP\IUserManager;
-use OC\Files\Filesystem;
-
-class Scan extends Base
-{
-
- private $userManager;
-
- // private $userFolder;
- private $solrService;
-
- private $fileService;
-
- private $filesExtracted;
-
- private $filesTotal;
-
- public function __construct(IUserManager $userManager, $userFolder, $solrService, $fileService)
- {
- parent::__construct();
- $this->userManager = $userManager;
- $this->solrService = $solrService;
- // $this->userFolder = $userFolder;
- $this->fileService = $fileService;
- }
-
- protected function configure()
- {
- parent::configure();
- $this->setName('nextant:scan')->setDescription('**deprecated** use nextant:index instead');
- }
-
- protected function execute(InputInterface $input, OutputInterface $output)
- {
-
- if (! $this->solrService->configured()) {
- $output->writeln('Nextant is not yet configured');
- return;
- }
-
- $output->writeln('**deprecated** use nextant:index instead');
- return;
- }
-
-}
-
-
-