1
0
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:
Toby Zerner
2015-10-11 22:31:06 +10:30
parent 663de42917
commit 1c3fda4a71
6 changed files with 27 additions and 6 deletions

View File

@@ -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;
}
}