vendor/2amigos/yii2-usuario/src/User/Bootstrap.php
/**
     * Ensures the auth manager is the one provided by the library.
     *
     * @param Application $app
     *
     * @throws InvalidConfigException
     */
Ensures the auth manager is the one provided by the library.
@param Application $app


Ensures the auth manager is the one provided by the library . @param Application $app
protected function initAuthManager(Application $app)
    {
        if (!($app->getAuthManager() instanceof AuthManagerInterface)) {
            $app->set(
                'authManager',
                [
                    'class' => AuthDbManagerComponent::class,
                ]
            );
        }
    }
protected function initAuthManager ( Application $ app ) { if ( ! ( $ app -> getAuthManager ( ) instanceof AuthManagerInterface ) ) { $ app -> set ( 'authManager' , [ 'class' => AuthDbManagerComponent :: class , ] ) ; } }
Ensures the auth manager is the one provided by the library.
Ensures the auth manager is the one provided by the library .