. * */ namespace OCA\Tasks\Controller; use OCA\Tasks\AppInfo\Application; /** * Tasks search provider */ class SearchProvider extends \OCP\Search\Provider { // private $tasksService; public function __construct() { $app = new Application(); $container = $app->getContainer(); $this->app = $app; // $this->tasksService = $container->query('TasksService'); } /** * Search for query in tasks * * @param string $query * @return array */ public function search($query) { return array(); // return $this->tasksService->search($query); } }