-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add register modules sequence command.
Improve local Makefile
- Loading branch information
1 parent
a8f4eee
commit f28632e
Showing
12 changed files
with
297 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Interfaces\Console; | ||
|
||
use App\Application\Commands\HandleReceivedEvent; | ||
use Psr\Container\ContainerInterface; | ||
use Spiral\Console\Attribute\AsCommand; | ||
use Spiral\Console\Command\SequenceCommand; | ||
use Spiral\Console\Config\ConsoleConfig; | ||
use Spiral\Cqrs\CommandBusInterface; | ||
|
||
#[AsCommand( | ||
name: 'register:modules', | ||
description: 'Register modules', | ||
)] | ||
final class RegisterModulesCommand extends SequenceCommand | ||
{ | ||
public const SEQUENCE = 'register:modules'; | ||
|
||
public function __invoke(ConsoleConfig $config, ContainerInterface $container): int | ||
{ | ||
$this->info('Register buggregator modules...'); | ||
$this->newLine(); | ||
|
||
return $this->runSequence($config->getSequence(self::SEQUENCE), $container); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.