@@ -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 | -} |
|
@@ -157,22 +157,3 @@ |
||
| 157 | 157 | private function getTemplateClass(): string |
| 158 | 158 | { |
| 159 | 159 | return <<<EOF |
| 160 | - <?php |
|
| 161 | - declare(strict_types=1); |
|
| 162 | - |
|
| 163 | - namespace Platine\Framework\Migration\Seed; |
|
| 164 | - |
|
| 165 | - use Platine\Framework\Migration\Seed\AbstractSeed; |
|
| 166 | - |
|
| 167 | - class %classname% extends AbstractSeed |
|
| 168 | - { |
|
| 169 | - |
|
| 170 | - public function run(): void |
|
| 171 | - { |
|
| 172 | - //Action when run the seed |
|
| 173 | - |
|
| 174 | - } |
|
| 175 | - } |
|
| 176 | - EOF; |
|
| 177 | - } |
|
| 178 | -} |
|
@@ -161,28 +161,3 @@ |
||
| 161 | 161 | private function getTemplateClass(): string |
| 162 | 162 | { |
| 163 | 163 | return <<<EOF |
| 164 | - <?php |
|
| 165 | - declare(strict_types=1); |
|
| 166 | - |
|
| 167 | - namespace Platine\Framework\Migration; |
|
| 168 | - |
|
| 169 | - use Platine\Framework\Migration\AbstractMigration; |
|
| 170 | - |
|
| 171 | - class %classname% extends AbstractMigration |
|
| 172 | - { |
|
| 173 | - |
|
| 174 | - public function up(): void |
|
| 175 | - { |
|
| 176 | - //Action when migrate up |
|
| 177 | - |
|
| 178 | - } |
|
| 179 | - |
|
| 180 | - public function down(): void |
|
| 181 | - { |
|
| 182 | - //Action when migrate down |
|
| 183 | - |
|
| 184 | - } |
|
| 185 | - } |
|
| 186 | - EOF; |
|
| 187 | - } |
|
| 188 | -} |
|