Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

[Proposal][5.4] Add additional redis.connection alias #400

Closed
hskrasek opened this issue Feb 2, 2017 · 1 comment
Closed

[Proposal][5.4] Add additional redis.connection alias #400

hskrasek opened this issue Feb 2, 2017 · 1 comment

Comments

@hskrasek
Copy link

hskrasek commented Feb 2, 2017

Now that the Illuminate Redis component roughly matches the same pattern as the Database component, I propose we add a redis.connection alias so that you don't have to inject or type hint the the entire RedisManager class.

$this->app->bind('redis.connection', function ($app) {
            return $app['redis']->connection();
        });
@taylorotwell
Copy link
Member

Fine with me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants