app['form'] = $this->app->share(function($app) { return new FormBuilder($app['url'], $app['session']->getToken()); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return array('form'); } }