Skip to content

Commit 072de01

Browse files
author
Kapil
committed
Upgrading to 5.2 from 5.1
Changed because bindShared has been renamed to singleton in laravel 5.2.
1 parent 2eeaba1 commit 072de01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bllim/Laravalid/LaravalidServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public function register()
4343

4444
if(!isset($this->app['html']))
4545
{
46-
$this->app->bindShared('html', function($app)
46+
$this->app->singleton('html', function($app)
4747
{
4848
return new \Collective\Html\HtmlBuilder($app['url']);
4949
});
5050
}
5151

52-
$this->app->bindShared('laravalid', function ($app) {
52+
$this->app->singleton('laravalid', function ($app) {
5353
$plugin = \Config::get('laravalid.plugin');
5454
$converterClassName = 'Bllim\Laravalid\Converter\\'.$plugin.'\Converter';
5555
$converter = new $converterClassName();

0 commit comments

Comments
 (0)