* Changed Stopwords processing

This commit is contained in:
Visman 2018-11-14 14:34:06 +07:00
parent f3d2f3d7f0
commit e0d1dc5692
2 changed files with 7 additions and 7 deletions

View file

@ -1,15 +1,15 @@
<?php
namespace ForkBB\Models;
namespace ForkBB\Models\Stopwords;
use ForkBB\Models\Model;
use ForkBB\Models\Model as ParentModel;
class Stopwords extends Model
class Model extends ParentModel
{
/**
* Загружает список игнорируемых при индексации слов из кеша/БД
*
* @return Stopwords
* @return Stopwords\Model
*/
public function init()
{
@ -55,7 +55,7 @@ class Stopwords extends Model
/**
* Регенерация кэша массива слов с возвращением результата
*
* @return Stopwords
* @return Stopwords\Model
*/
protected function load()
{

View file

@ -92,7 +92,7 @@ return [
'admins' => '@AdminListModel:init',
'smilies' => '@SmileyListModel:init',
'dbMap' => '@ModelDBMap:init',
'stopwords' => '@ModelStopwords:init',
'stopwords' => '@StopwordsModel:init',
'forums' => '@ForumManager:init',
'topics' => \ForkBB\Models\Topic\Manager::class,
'posts' => \ForkBB\Models\Post\Manager::class,
@ -200,7 +200,7 @@ return [
'ModelDBMap' => \ForkBB\Models\DBMap::class,
'ModelStopwords' => \ForkBB\Models\Stopwords::class,
'StopwordsModel' => \ForkBB\Models\Stopwords\Model::class,
'UserModel' => \ForkBB\Models\User\Model::class,
'UserManagerLoad' => \ForkBB\Models\User\Load::class,