Skip to content

Commit

Permalink
Update ServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jarektkaczyk committed Apr 14, 2016
1 parent 78f287b commit bfa62ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Laravel/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function bindLogger()
{
$table = $this->app['config']->get('sofa_revisionable.table', 'revisions');

$this->app->bindShared('revisionable.logger', function ($app) use ($table) {
$this->app->singleton('revisionable.logger', function ($app) use ($table) {
return new \Sofa\Revisionable\Laravel\DbLogger($app['db']->connection(), $table);
});
}
Expand Down Expand Up @@ -92,7 +92,7 @@ protected function bindUserProvider()
*/
protected function bindSentryProvider()
{
$this->app->bindShared('revisionable.userprovider', function ($app) {
$this->app->singleton('revisionable.userprovider', function ($app) {
$field = $app['config']->get('sofa_revisionable.userfield');

return new \Sofa\Revisionable\Adapters\Sentry($app['sentry'], $field);
Expand All @@ -106,7 +106,7 @@ protected function bindSentryProvider()
*/
protected function bindSentinelProvider()
{
$this->app->bindShared('revisionable.userprovider', function ($app) {
$this->app->singleton('revisionable.userprovider', function ($app) {
$field = $app['config']->get('sofa_revisionable.userfield');

return new \Sofa\Revisionable\Adapters\Sentinel($app['sentinel'], $field);
Expand All @@ -120,7 +120,7 @@ protected function bindSentinelProvider()
*/
private function bindJwtAuthProvider()
{
$this->app->bindShared('revisionable.userprovider', function ($app) {
$this->app->singleton('revisionable.userprovider', function ($app) {
$field = $app['config']->get('sofa_revisionable.userfield');

return new \Sofa\Revisionable\Adapters\JwtAuth($app['tymon.jwt.auth'], $field);
Expand All @@ -134,10 +134,10 @@ private function bindJwtAuthProvider()
*/
protected function bindGuardProvider()
{
$this->app->bindShared('revisionable.userprovider', function ($app) {
$this->app->singleton('revisionable.userprovider', function ($app) {
$field = $app['config']->get('sofa_revisionable.userfield');

return new \Sofa\Revisionable\Adapters\Guard($app['auth']->driver(), $field);
return new \Sofa\Revisionable\Adapters\Guard($app['auth.driver], $field);
});
}
Expand Down

0 comments on commit bfa62ba

Please sign in to comment.