-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation $this->get('request') #64
Comments
Thanks :) ! |
I think this is a similar problematic as #66 |
The problem is that the detector only checks the return type of |
Having a service named |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running deprecator detects $this->getRequest() but i found some very old code that was using in Controller
$this->get('request')
which will be deprecated in 3.0
/**
* Gets a container service by its id.
*
* @param string $id The service id
*
* @return object The service
*/
public function get($id)
{
if ('request' === $id) {
@trigger_error('The "request" service is deprecated and will be removed in 3.0. Add a typehint for Symfony\Component\HttpFoundation\Request to your controller parameters to retrieve the request instead.', E_USER_DEPRECATED);
}
Deprecator needs to generate error here (it needs rule)
The text was updated successfully, but these errors were encountered: