Refactored Config.

This commit is contained in:
Dmitry Khomutov 2018-03-04 15:56:02 +07:00
commit dd9f43b7dd
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
37 changed files with 40 additions and 43 deletions

View file

@ -151,7 +151,7 @@ class Application extends b8\Application
*/
protected function shouldSkipAuth()
{
$config = b8\Config::getInstance();
$config = Config::getInstance();
$disableAuth = (bool)$config->get('php-censor.security.disable_auth', false);
$defaultUserId = (integer)$config->get('php-censor.security.default_user_id', 1);