Convert to new bindShared method on container.
This commit is contained in:
1 parent
882b5cf3c7
commit
b2f33ae986
1 file changed
+2
-2
@@ -30,7 +30,7 @@ class HtmlServiceProvider extends ServiceProvider {
|
||||
*/
|
||||
protected function registerHtmlBuilder()
|
||||
{
|
||||
$this->app['html'] = $this->app->share(function($app)
|
||||
$this->app->bindShared('html', function($app)
|
||||
{
|
||||
return new HtmlBuilder($app['url']);
|
||||
});
|
||||
@@ -43,7 +43,7 @@ class HtmlServiceProvider extends ServiceProvider {
|
||||
*/
|
||||
protected function registerFormBuilder()
|
||||
{
|
||||
$this->app['form'] = $this->app->share(function($app)
|
||||
$this->app->bindShared('form', function($app)
|
||||
{
|
||||
$form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());
|
||||
|
||||
|
||||
Reference in new issue
Block a user