public static function init() { date_default_timezone_set('Europe/Moscow'); DBConfig::setDBSettingsObj(AuthConstants::DB_NAME_PHPAUTH, new DBSettings('localhost', 'db_phpauthdemo', 'root', '1')); CacheConfig::addServerSettingsObj(new MemcacheServerSettings('localhost', 11211)); AuthConfig::setExtraCookiesArr(['ignore_nginx_cache' => 1]); AuthConfig::setAdminActionsBaseClassname(AdminDemoActionsBase::class); LayoutsConfig::setAdminLayoutClassName(LayoutBootstrap::class); // AuthConfig::setUserEventClass(UserEvents::class); //AuthConfig::setFullAccessCookieName('php_auth'); /* $conf['return_false_if_no_route'] = true; // for local php server $conf['php-bt'] = [ 'menu_classes_arr' => [ \OLOG\Auth\Admin\AuthAdminMenu::class ], 'application_title' => 'Auth demo' ]; $conf['php_auth'] = [ 'full_access_cookie_name' => 'jkhbsdfhjvkdfvjgvasdc' ]; return $conf; */ }
public static function init() { DBConfig::setDBSettingsObj(self::DB_NAME_PHPMODELDEMO, new DBSettings('localhost', 'phpmodel', 'root', '1')); CacheConfig::addServerSettingsObj(new MemcacheServerSettings('localhost', 11211)); }