Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function createApplication()
 {
     $app = new Application();
     $app->initialize();
     $app->initPluginEventDispatcher();
     $app['session.test'] = true;
     $app['exception_handler']->disable();
     $app['form.csrf_provider'] = $app->share(function () {
         return new CsrfTokenMock();
     });
     $app->boot();
     return $app;
 }