Created
February 14, 2016 17:06
-
-
Save chrisguitarguy/b65ed477ee19529ee332 to your computer and use it in GitHub Desktop.
Update calls to `createForm` in Symfony controllers to use class names instead of instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find path/to/Bundle/Controller -type f -name '*.php' -exec sed -i '' 's/createForm(new \(.*\)()/createForm(\1::class/' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment