Skip to content

Commit

Permalink
Merge pull request #14 from tur-nr/patch-1
Browse files Browse the repository at this point in the history
Use app helper to return optimus manager
  • Loading branch information
antonkomarev authored Nov 5, 2018
2 parents 3a30695 + bd1ee47 commit da39965
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Traits/OptimusEncodedRouteKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Cog\Laravel\Optimus\Traits;

use Cog\Laravel\Optimus\Facades\Optimus;

trait OptimusEncodedRouteKey
{
/**
Expand Down Expand Up @@ -45,6 +43,6 @@ protected function getOptimus()
$connection = $this->optimusConnection;
}

return Optimus::connection($connection);
return app('optimus')->connection($connection);
}
}

0 comments on commit da39965

Please sign in to comment.