Skip to content

Commit

Permalink
Update RepositoriesServiceProvider to be compatible with bulk binding…
Browse files Browse the repository at this point in the history
… in L5.6 (#21961)[laravel/framework#21961]
  • Loading branch information
MilesPong committed Mar 25, 2018
1 parent 38df931 commit c9417ac
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions app/Providers/RepositoryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RepositoryServiceProvider extends ServiceProvider
/**
* @var array
*/
protected $bindings = [
public $bindings = [
\App\Repositories\Contracts\PermissionRepository::class => \App\Repositories\Eloquent\PermissionRepositoryEloquent::class,
\App\Repositories\Contracts\RoleRepository::class => \App\Repositories\Eloquent\RoleRepositoryEloquent::class,
\App\Repositories\Contracts\UserRepository::class => \App\Repositories\Eloquent\UserRepositoryEloquent::class,
Expand Down Expand Up @@ -42,16 +42,6 @@ public function boot()
*/
public function register()
{
foreach ($this->bindings() as $abstract => $concrete) {
$this->app->bind($abstract, $concrete);
}
}

/**
* @return array
*/
public function bindings()
{
return $this->bindings;
}
}

0 comments on commit c9417ac

Please sign in to comment.