Inheritance: extends October\Rain\Auth\Manager
Beispiel #1
0
 public function register()
 {
     $alias = AliasLoader::getInstance();
     $alias->alias('Auth', 'RainLab\\User\\Facades\\Auth');
     App::singleton('user.auth', function () {
         return \RainLab\User\Classes\AuthManager::instance();
     });
     /*
      * Apply user-based mail blocking 
      */
     Event::listen('mailer.prepareSend', function ($mailer, $view, $message) {
         return MailBlocker::filterMessage($view, $message);
     });
 }
Beispiel #2
0
 /**
  * Create a new instance of this singleton.
  *
  * @static 
  */
 public static function instance()
 {
     //Method inherited from \October\Rain\Auth\Manager
     return \RainLab\User\Classes\AuthManager::instance();
 }