Closed mruz closed 4 years ago
It could simplify the definition from:
$di->set('auth', function () use ($options, $users) { $auth = new Ice\Auth\Driver\File($options); $auth->setUsers($users); return $auth; });
to:
$di->auth = [ Ice\Auth\Driver\File::class => $options ];
It could simplify the definition from:
to: