mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Update some APIs
- Rename DiscussionSearchWillBePerformed to ConfigureDiscussionSearch, same with users - Add some handy methods
This commit is contained in:
@@ -37,4 +37,13 @@ class ConfigureModelDates
|
||||
$this->model = $model;
|
||||
$this->dates = &$dates;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $model
|
||||
* @return bool
|
||||
*/
|
||||
public function isModel($model)
|
||||
{
|
||||
return $this->model instanceof $model;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user