symfony - Structural find and replace IntelliJ PhpStorm -
i migrating symfony 2.3 symfony 2.8 , having problem around 300 forms in twig files need change :
<form action="something" class="someclass" method="post"> ... {{ form_rest(form) }} </form> to
{{ form_start(form, {'attrs': {'action': 'something', 'class': 'someclass', 'method': 'post'}}) }} ... {{ form_end(form) }} i think should scripted instead of doing hand , bet phpstorm's "replace structurally" may perfect tool this.
of course, forms may have more or less attributes defined need flexible. may have id , may have class having @ least 1 attribute.
can me 1 not familiar tool ? moreover, "replace structurally" tool missing "twig" filetype little confused registered in filetypes.
Comments
Post a Comment