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); }); }
/** * 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(); }