Skip to content

Commit

Permalink
update the use of Plugin namespace to match the last change of DevNet…
Browse files Browse the repository at this point in the history
… CLI
  • Loading branch information
Maometos committed Mar 14, 2024
1 parent 3b9529d commit 60d1a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions global.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
* @link https://github.com/DevNet-Framework
*/

use DevNet\CLI\Commands\CommandRegistry;
use DevNet\CLI\Plugin\CodeGeneratorRegistry;
use DevNet\CLI\Plugin\CommandRegistry;
use DevNet\ORM\Tools\MigrateCommand;
use DevNet\ORM\Tools\MigrationGeneratorProvider;

/**
* DevNet CLI package is not mandatory required by DevNet Entity package,
* DevNet CLI package is not mandatory required by DevNet ORM package,
* so we need to check first if the DevNet CLI is installed before registering the command.
*/
if (class_exists(CommandRegistry::class)) {
CommandRegistry::register('migrate', MigrateCommand::class);
CommandRegistry::register('migrate',MigrateCommand::class);
CodeGeneratorRegistry::register('migration', MigrationGeneratorProvider::class);
}

0 comments on commit 60d1a10

Please sign in to comment.