-
Notifications
You must be signed in to change notification settings - Fork 0
App
Karel Wintersky edited this page Dec 10, 2020
·
1 revision
Реестр
$app = App::access(); // or ::handle()
$app->set(DB::class, DB::C());
$app->set(PHPAuth::class, new PHPAuth(DB::C(), (new PHPAuthConfig())->loadENV('_env')->getConfig() ));
$app = App::access(); // or ::handle()
$dbc = $app->get(DB::class);
// or
$dbc = (App::access())->get(DB::class);
$auth = $app->get(PHPAuth::class);