Пример #1
0
 /**
  * Prepare the request by injecting any services.
  *
  * @param \Illuminate\Http\Request $request
  * @return \Illuminate\Http\Request 
  * @static 
  */
 public static function prepareRequest($request)
 {
     return \Illuminate\Foundation\Application::prepareRequest($request);
 }
Пример #2
0
 public function testPrepareRequestInjectsSession()
 {
     $app = new Application();
     $request = Illuminate\Http\Request::create('/', 'GET');
     $app['session'] = m::mock('Illuminate\\Session\\Store');
     $app->prepareRequest($request);
     $this->assertEquals($app['session'], $request->getSessionStore());
 }