File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,5 +36,11 @@ public function init(
3636 new Component \Resource \ComponentJS ($ this , "SearchMainMenu.js " );
3737 $ contribute [Component \Resource \PublicAsset::class] = fn () =>
3838 new Component \Resource \ComponentJS ($ this , "Search.js " );
39+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
40+ new \ilLuceneIndexer (
41+ self ::class,
42+ $ use [\ILIAS \Language \Language::class],
43+ $ use [\ILIAS \Logging \LoggerFactory::class]
44+ );
3945 }
4046}
Original file line number Diff line number Diff line change 11<?php
22
3+ /**
4+ * This file is part of ILIAS, a powerful learning management system
5+ * published by ILIAS open source e-Learning e.V.
6+ *
7+ * ILIAS is licensed with the GPL-3.0,
8+ * see https://www.gnu.org/licenses/gpl-3.0.en.html
9+ * You should have received a copy of said license along with the
10+ * source code, too.
11+ *
12+ * If this is not the case or you just want to try ILIAS, you'll find
13+ * us at:
14+ * https://www.ilias.de
15+ * https://github.com/ILIAS-eLearning
16+ *
17+ *********************************************************************/
18+
319declare (strict_types=1 );
4- /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
520
621use ILIAS \Cron \Schedule \CronJobScheduleType ;
722
1631class ilLuceneIndexer extends ilCronJob
1732{
1833 protected int $ timeout = 60 ;
19-
20- protected ilLanguage $ lng ;
2134 protected ilSetting $ setting ;
2235
23- public function __construct ()
36+ public function init (): void
2437 {
2538 global $ DIC ;
26-
27- $ this ->lng = $ DIC ->language ();
2839 $ this ->setting = $ DIC ->settings ();
2940 }
3041
Original file line number Diff line number Diff line change 1414 <event type =" listen" id =" components/ILIAS/Search" />
1515 <event type =" listen" id =" components/ILIAS/Object" />
1616 </events >
17- <crons >
18- <cron id =" src_lucene_indexer" class =" ilLuceneIndexer" path =" Services/Search/classes/Lucene/" />
19- </crons >
2017 <logging />
2118</service >
You can’t perform that action at this time.
0 commit comments