mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-05-24 10:18:40 +00:00
use trait
This commit is contained in:
parent
a13c48dd8f
commit
4dff9b5357
|
|
@ -18,6 +18,7 @@ require_once __DIR__ . '/../Autoloader.php';
|
||||||
|
|
||||||
use phpOMS\Application\ApplicationAbstract;
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
use phpOMS\Application\ApplicationManager;
|
use phpOMS\Application\ApplicationManager;
|
||||||
|
use phpOMS\Config\OptionsTrait;
|
||||||
use phpOMS\Config\SettingsInterface;
|
use phpOMS\Config\SettingsInterface;
|
||||||
use phpOMS\Dispatcher\Dispatcher;
|
use phpOMS\Dispatcher\Dispatcher;
|
||||||
use phpOMS\Module\ModuleManager;
|
use phpOMS\Module\ModuleManager;
|
||||||
|
|
@ -43,6 +44,8 @@ class ApplicationManagerTest extends \PHPUnit\Framework\TestCase
|
||||||
$app->router = new WebRouter();
|
$app->router = new WebRouter();
|
||||||
$app->dispatcher = new Dispatcher($app);
|
$app->dispatcher = new Dispatcher($app);
|
||||||
$app->appSettings = new class implements SettingsInterface {
|
$app->appSettings = new class implements SettingsInterface {
|
||||||
|
use OptionsTrait;
|
||||||
|
|
||||||
public function get(
|
public function get(
|
||||||
mixed $ids = null,
|
mixed $ids = null,
|
||||||
string|array $names = null,
|
string|array $names = null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user