From 087138f2280a95ed677be82d1420e32793227cd7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 19 Jul 2017 13:23:14 +0200 Subject: use template placeholders instead of html Signed-off-by: Joas Schilling --- core/Command/Db/Migrations/GenerateCommand.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/Command/Db') diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php index f8a992940f9..4db82d6eff4 100644 --- a/core/Command/Db/Migrations/GenerateCommand.php +++ b/core/Command/Db/Migrations/GenerateCommand.php @@ -38,7 +38,7 @@ class GenerateCommand extends Command { protected static $_templateSimple = '; +namespace {{ extends SimpleMigrationStep { +class {{classname}} extends SimpleMigrationStep { /** * @param IOutput $output @@ -66,7 +66,7 @@ class extends SimpleMigrationStep { * @since 13.0.0 */ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { - +{{schemabody}} } /** @@ -133,9 +133,9 @@ class extends SimpleMigrationStep { $placeHolders = [ - '', - '', - '', + '{{namespace}}', + '{{classname}}', + '{{schemabody}}', ]; $replacements = [ $ms->getMigrationsNamespace(), -- cgit v1.2.3