Replies: 1 comment 5 replies
|
Hi, all the Symfony rules are here: https://github.com/rectorphp/rector-symfony/blob/main/docs/rector_rules_overview.md |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I was sure there was a rule to move
$this->get('service_id')to the action method parameters. However I can't find this rule in rector-symfony. Did I dream it or what?class MyController { - public function myAction() + public function myAction(MyService $service) { - $myService = $this->get('my_service'); } }All reactions