Skip to content

Commit

Permalink
Remove yiisoft/files dependency (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Oct 14, 2023
1 parent 1ec213d commit d5d5446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -28,7 +28,6 @@
"yiisoft/db": "^1.1",
"yiisoft/di": "^1.0",
"yiisoft/definitions": "^3.0",
"yiisoft/files": "^1.0|^2.0",
"yiisoft/injector": "^1.0",
"yiisoft/strings": "^2.0"
},
Expand All @@ -39,6 +38,7 @@
"roave/infection-static-analysis-plugin": "^1.25|^1.32",
"spatie/phpunit-watcher": "^1.23",
"vimeo/psalm": "^4.30|^5.12",
"yiisoft/files": "^1.0|^2.0",
"yiisoft/test-support": "^3.0",
"yiisoft/yii-console": "^1.0|^2.0"
},
Expand Down
3 changes: 1 addition & 2 deletions src/Command/CreateCommand.php
Expand Up @@ -13,7 +13,6 @@
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Console\Style\SymfonyStyle;
use Yiisoft\Files\FileHelper;
use Yiisoft\Strings\Inflector;
use Yiisoft\Db\Migration\Migrator;
use Yiisoft\Db\Migration\Service\Generate\CreateService;
Expand Down Expand Up @@ -144,7 +143,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return Command::INVALID;
}

$migrationPath = FileHelper::normalizePath($this->migrationService->findMigrationPath($namespace));
$migrationPath = $this->migrationService->findMigrationPath($namespace);

$file = $migrationPath . DIRECTORY_SEPARATOR . $className . '.php';

Expand Down

0 comments on commit d5d5446

Please sign in to comment.