Skip to content

Commit

Permalink
upgrade notes
Browse files Browse the repository at this point in the history
  • Loading branch information
milejko committed Oct 11, 2017
1 parent ff1711e commit 38efe32
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions UPGRADE-3.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
FORM ELEMENTS:

find:
->addElement([a-zA-Z]+)(\(\'[a-zA-Z0-9]+\'\))([\s]+?[^;]+)?;

replace:
->addElement((new Element\\$1$2)$3);

find:
namespace ([A-Z][a-zA-Z0-9]+Admin)\\Form([a-zA-Z0-9\\]+)?;

replace:
namespace $1\\Form$2;\n\nuse Cms\\Form\\Element;

search for:
\Form\Form
(check if "use Mmi\Form\Element;" exists)

VALIDATORS:

find:
->addValidator([a-zA-Z]+)\((.*?)\)

replace:
->addValidator(new \\Mmi\\Validator\\$1(\[$2\]))

FILTERS:

find:
->addFilter([a-zA-Z]+)\((.*?)\)

replace:
->addFilter(new \\Mmi\\Filter\\$1(\[$2\]))

GRIDS:

find:
->addColumn([a-zA-Z]+)\(\);

replace:
->addColumn(new Column\\$1Column);

find:
->addColumn([a-zA-Z]+)(\(\'[a-zA-Z0-9]+\'\))([\s]+?[^;]+)?;

replace:
->addColumn((new Column\\$1Column$2)$3);

find:
->addColumn([a-zA-Z]+)\(\)([\s]+?[^;]+)?;

replace:
->addColumn((new Column\\$1Column)$2);

find:
namespace ([A-Z][a-zA-Z0-9]+Admin)\\Plugin([a-zA-Z0-9\\]+)?;

replace:
namespace $1\\Plugin$2;\n\nuse CmsAdmin\\Grid\\Column;

search for:
addColumn[A-Z]
(check if use Cms\Admin\Grid\Column exists)

0 comments on commit 38efe32

Please sign in to comment.