packagist lexik/jwt-authentication-bundle v1.7.0
Deprecate injection of Request instances in event classes

latest releases: v3.0.0, 3.x-dev, v2.21.0...
7 years ago

Since Symfony 2.4, the current Request is accessible from the RequestStack.
Before that, we passed the current Request instance across our Events, allowing to return custom responses depending on the Request.

Now, developers just have to inject the request_stack service in their listeners and retrieve the current request as needed.

This release only depreciate the practice to inject and retrieve the request by adding a default null value to all arguments type-hinted as Request, keeping BC almost intact while triggering deprecation notices from constructors and getters, before we totally remove the practice in the v2.0 major release.

Don't miss a new jwt-authentication-bundle release

NewReleases is sending notifications on new releases.