/**
  * Registers the FormBuilder class into the IoC
  */
 private function registerFormBuilder()
 {
     $this->app->bind('bootstrapper::form', function ($app) {
         $form = new Form($app->make('html'), $app->make('url'), $app['session.store']->getToken());
         return $form->setSessionStore($app['session.store']);
     }, true);
 }
Example #2
0
 /**
  * Set the session store implementation.
  *
  * @param \Illuminate\Session\Store $session
  * @return $this 
  * @static 
  */
 public static function setSessionStore($session)
 {
     //Method inherited from \Illuminate\Html\FormBuilder
     return \Bootstrapper\Form::setSessionStore($session);
 }
 public function registerFormBuilder()
 {
     $this->app->bindShared('bootstrapper::form', function ($app) {
         $form = new Form($app['html'], $app['url'], $app['session.store']->getToken());
         return $form->setSessionStore($app['session.store']);
     });
 }