setSession() public static method

Sets the Session.
public static setSession ( Symfony\Component\HttpFoundation\SessionInterface $session )
$session Symfony\Component\HttpFoundation\SessionInterface The Session
Example #1
0
 /**
  * Creates the application.
  *
  * @return \Illuminate\Foundation\Application
  */
 public function createApplication()
 {
     // load the application
     $app = (require __DIR__ . '/../bootstrap/app.php');
     // bootstrap console kernel
     $app->make('Illuminate\\Contracts\\Console\\Kernel')->bootstrap();
     // set session storage
     Request::setSession($app['session.store']);
     return $app;
 }