App\Providers\PresenterServiceProvider::registerRedirector PHP Méthode

registerRedirector() private méthode

private registerRedirector ( )
    private function registerRedirector()
    {
        $this->app->singleton('xe.redirect', function ($app) {
            $redirector = new Redirector($app['url']);
            // If the session is set on the application instance, we'll inject it into
            // the redirector instance. This allows the redirect responses to allow
            // for the quite convenient "with" methods that flash to the session.
            if (isset($app['session.store'])) {
                $redirector->setSession($app['session.store']);
            }
            return $redirector;
        });
    }