Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[6.x] Add redis.connection aliases in container #31034
In order to add on these improvements:
I've added two aliases to the
These aliases are:
It will then allow anyone to type hint on the redis Connection class or Contract and let the container resolve the correct connection implementation.
This behavior will also be consistent with the database one.
One other advantage of doing this is that developers won't need to type hint on the lower level