@@ -3,18 +3,15 @@ |
||
| 3 | 3 | use Way\Generators\Commands\GeneratorCommand; |
| 4 | 4 | use Symfony\Component\Console\Input\InputOption; |
| 5 | 5 | use Symfony\Component\Console\Input\InputArgument; |
| 6 | - |
|
| 7 | 6 | use Way\Generators\Generator; |
| 8 | 7 | use Way\Generators\Filesystem\Filesystem; |
| 9 | 8 | use Way\Generators\Compilers\TemplateCompiler; |
| 10 | 9 | use Illuminate\Database\Migrations\MigrationRepositoryInterface; |
| 11 | - |
|
| 12 | 10 | use Xethron\MigrationsGenerator\Generators\SchemaGenerator; |
| 13 | 11 | use Xethron\MigrationsGenerator\Syntax\AddToTable; |
| 14 | 12 | use Xethron\MigrationsGenerator\Syntax\DroppedTable; |
| 15 | 13 | use Xethron\MigrationsGenerator\Syntax\AddForeignKeysToTable; |
| 16 | 14 | use Xethron\MigrationsGenerator\Syntax\RemoveForeignKeysFromTable; |
| 17 | - |
|
| 18 | 15 | use Illuminate\Contracts\Config\Repository as Config; |
| 19 | 16 | |
| 20 | 17 | class MigrateGenerateCommand extends GeneratorCommand { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * @param \Way\Generators\Filesystem\Filesystem $file |
| 116 | 116 | * @param \Way\Generators\Compilers\TemplateCompiler $compiler |
| 117 | 117 | * @param \Illuminate\Database\Migrations\MigrationRepositoryInterface $repository |
| 118 | - * @param \Illuminate\Config\Repository $config |
|
| 118 | + * @param Config $config |
|
| 119 | 119 | */ |
| 120 | 120 | public function __construct( |
| 121 | 121 | Generator $generator, |
@@ -268,6 +268,11 @@ discard block |
||
| 268 | 268 | * @param bool $trim |
| 269 | 269 | * @return false|string |
| 270 | 270 | */ |
| 271 | + |
|
| 272 | + /** |
|
| 273 | + * @param string $start |
|
| 274 | + * @param string $end |
|
| 275 | + */ |
|
| 271 | 276 | public function getStringBetween($string, $start, $end, $trim = true) { |
| 272 | 277 | $string = ' ' . $string; |
| 273 | 278 | $ini = strpos($string, $start); |