@@ -159,26 +159,3 @@ |
||
159 | 159 | private function getTemplateClass(): string |
160 | 160 | { |
161 | 161 | return <<<EOF |
162 | - <?php |
|
163 | - namespace Platine\Framework\Migration; |
|
164 | - |
|
165 | - use Platine\Framework\Migration\AbstractMigration; |
|
166 | - |
|
167 | - class %classname% extends AbstractMigration |
|
168 | - { |
|
169 | - |
|
170 | - public function up(): void |
|
171 | - { |
|
172 | - //Action when migrate up |
|
173 | - |
|
174 | - } |
|
175 | - |
|
176 | - public function down(): void |
|
177 | - { |
|
178 | - //Action when migrate down |
|
179 | - |
|
180 | - } |
|
181 | - } |
|
182 | - EOF; |
|
183 | - } |
|
184 | -} |
@@ -85,31 +85,3 @@ |
||
85 | 85 | public function getClassTemplate(): string |
86 | 86 | { |
87 | 87 | return <<<EOF |
88 | - <?php |
|
89 | - |
|
90 | - declare(strict_types=1); |
|
91 | - |
|
92 | - namespace %namespace%; |
|
93 | - |
|
94 | - use Platine\Http\Handler\RequestHandlerInterface; |
|
95 | - use Platine\Http\ResponseInterface; |
|
96 | - use Platine\Http\ServerRequestInterface; |
|
97 | - |
|
98 | - /** |
|
99 | - * @class %classname% |
|
100 | - * @package %namespace% |
|
101 | - */ |
|
102 | - class %classname% implements RequestHandlerInterface |
|
103 | - { |
|
104 | - |
|
105 | - /** |
|
106 | - * {@inheritodc} |
|
107 | - */ |
|
108 | - public function handle(ServerRequestInterface \$request): ResponseInterface |
|
109 | - { |
|
110 | - } |
|
111 | - } |
|
112 | - |
|
113 | - EOF; |
|
114 | - } |
|
115 | -} |