├── .github └── workflows │ └── tests.yml ├── .gitignore ├── .scrutinizer.yml ├── .travis.yml ├── LICENSE.txt ├── README.md ├── composer.json ├── phpunit.xml ├── src ├── Bridge │ ├── Laravel │ │ ├── Facades │ │ │ └── Chief.php │ │ ├── IlluminateContainer.php │ │ ├── IlluminateEventDispatcher.php │ │ ├── IlluminateQueueHandler.php │ │ ├── IlluminateQueuer.php │ │ └── LaravelServiceProvider.php │ ├── League │ │ └── LeagueContainer.php │ └── Psr │ │ └── PsrContainer.php ├── Busses │ └── SynchronousCommandBus.php ├── CacheableCommand.php ├── Chief.php ├── Command.php ├── CommandBus.php ├── CommandHandler.php ├── CommandHandlerResolver.php ├── CommandQueuer.php ├── Container.php ├── Containers │ └── NativeContainer.php ├── Decorator.php ├── Decorators │ ├── CachingDecorator.php │ ├── CommandQueueingDecorator.php │ ├── EventDispatcher.php │ ├── EventDispatchingDecorator.php │ ├── InnerBusTrait.php │ ├── LoggingDecorator.php │ └── TransactionalCommandLockingDecorator.php ├── Exceptions │ ├── ChiefException.php │ └── UnresolvableCommandHandlerException.php ├── Handlers │ ├── CallableCommandHandler.php │ └── LazyLoadingCommandHandler.php ├── HasCacheOptions.php ├── QueueableCommand.php ├── Resolvers │ └── NativeCommandHandlerResolver.php └── TransactionalCommand.php └── tests ├── Bridge ├── Laravel │ ├── IlluminateContainer.php │ └── IlluminateEventDispatcher.php ├── League │ └── LeagueContainer.php └── Psr │ └── PsrContainerTest.php ├── Busses └── SynchronousCommandBusTest.php ├── ChiefTest.php ├── ChiefTestCase.php ├── Containers └── NativeContainerTest.php ├── Decorators ├── CachingDecoratorTest.php ├── CommandQueueingDecoratorTest.php ├── DecoratorTest.php ├── EventDispatchingDecoratorTest.php ├── LoggingDecoratorTest.php └── TransactionalCommandLockingDecoratorTest.php ├── Resolvers └── NativeCommandHandlerResolverTest.php └── Stubs ├── Handlers └── TestCommandWithNestedHandlerHandler.php ├── LogDecoratorCommandBus.php ├── NonInterfaceImplementingCommand.php ├── NonInterfaceImplementingCommandHandler.php ├── SelfHandlingCommand.php ├── TestCommand.php ├── TestCommandHandler.php ├── TestCommandWithNestedHandler.php ├── TestCommandWithoutHandler.php ├── TestQueueableCommand.php └── TestTransactionalCommand.php /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /vendor/ 2 | composer.lock 3 | -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/Bridge/Laravel/Facades/Chief.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Laravel/Facades/Chief.php -------------------------------------------------------------------------------- /src/Bridge/Laravel/IlluminateContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Laravel/IlluminateContainer.php -------------------------------------------------------------------------------- /src/Bridge/Laravel/IlluminateEventDispatcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Laravel/IlluminateEventDispatcher.php -------------------------------------------------------------------------------- /src/Bridge/Laravel/IlluminateQueueHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Laravel/IlluminateQueueHandler.php -------------------------------------------------------------------------------- /src/Bridge/Laravel/IlluminateQueuer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Laravel/IlluminateQueuer.php -------------------------------------------------------------------------------- /src/Bridge/Laravel/LaravelServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Laravel/LaravelServiceProvider.php -------------------------------------------------------------------------------- /src/Bridge/League/LeagueContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/League/LeagueContainer.php -------------------------------------------------------------------------------- /src/Bridge/Psr/PsrContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Bridge/Psr/PsrContainer.php -------------------------------------------------------------------------------- /src/Busses/SynchronousCommandBus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Busses/SynchronousCommandBus.php -------------------------------------------------------------------------------- /src/CacheableCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/CacheableCommand.php -------------------------------------------------------------------------------- /src/Chief.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Chief.php -------------------------------------------------------------------------------- /src/Command.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Command.php -------------------------------------------------------------------------------- /src/CommandBus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/CommandBus.php -------------------------------------------------------------------------------- /src/CommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/CommandHandler.php -------------------------------------------------------------------------------- /src/CommandHandlerResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/CommandHandlerResolver.php -------------------------------------------------------------------------------- /src/CommandQueuer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/CommandQueuer.php -------------------------------------------------------------------------------- /src/Container.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Container.php -------------------------------------------------------------------------------- /src/Containers/NativeContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Containers/NativeContainer.php -------------------------------------------------------------------------------- /src/Decorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorator.php -------------------------------------------------------------------------------- /src/Decorators/CachingDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/CachingDecorator.php -------------------------------------------------------------------------------- /src/Decorators/CommandQueueingDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/CommandQueueingDecorator.php -------------------------------------------------------------------------------- /src/Decorators/EventDispatcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/EventDispatcher.php -------------------------------------------------------------------------------- /src/Decorators/EventDispatchingDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/EventDispatchingDecorator.php -------------------------------------------------------------------------------- /src/Decorators/InnerBusTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/InnerBusTrait.php -------------------------------------------------------------------------------- /src/Decorators/LoggingDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/LoggingDecorator.php -------------------------------------------------------------------------------- /src/Decorators/TransactionalCommandLockingDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Decorators/TransactionalCommandLockingDecorator.php -------------------------------------------------------------------------------- /src/Exceptions/ChiefException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Exceptions/ChiefException.php -------------------------------------------------------------------------------- /src/Exceptions/UnresolvableCommandHandlerException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Exceptions/UnresolvableCommandHandlerException.php -------------------------------------------------------------------------------- /src/Handlers/CallableCommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Handlers/CallableCommandHandler.php -------------------------------------------------------------------------------- /src/Handlers/LazyLoadingCommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Handlers/LazyLoadingCommandHandler.php -------------------------------------------------------------------------------- /src/HasCacheOptions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/HasCacheOptions.php -------------------------------------------------------------------------------- /src/QueueableCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/QueueableCommand.php -------------------------------------------------------------------------------- /src/Resolvers/NativeCommandHandlerResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/Resolvers/NativeCommandHandlerResolver.php -------------------------------------------------------------------------------- /src/TransactionalCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/src/TransactionalCommand.php -------------------------------------------------------------------------------- /tests/Bridge/Laravel/IlluminateContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Bridge/Laravel/IlluminateContainer.php -------------------------------------------------------------------------------- /tests/Bridge/Laravel/IlluminateEventDispatcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Bridge/Laravel/IlluminateEventDispatcher.php -------------------------------------------------------------------------------- /tests/Bridge/League/LeagueContainer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Bridge/League/LeagueContainer.php -------------------------------------------------------------------------------- /tests/Bridge/Psr/PsrContainerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Bridge/Psr/PsrContainerTest.php -------------------------------------------------------------------------------- /tests/Busses/SynchronousCommandBusTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Busses/SynchronousCommandBusTest.php -------------------------------------------------------------------------------- /tests/ChiefTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/ChiefTest.php -------------------------------------------------------------------------------- /tests/ChiefTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/ChiefTestCase.php -------------------------------------------------------------------------------- /tests/Containers/NativeContainerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Containers/NativeContainerTest.php -------------------------------------------------------------------------------- /tests/Decorators/CachingDecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Decorators/CachingDecoratorTest.php -------------------------------------------------------------------------------- /tests/Decorators/CommandQueueingDecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Decorators/CommandQueueingDecoratorTest.php -------------------------------------------------------------------------------- /tests/Decorators/DecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Decorators/DecoratorTest.php -------------------------------------------------------------------------------- /tests/Decorators/EventDispatchingDecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Decorators/EventDispatchingDecoratorTest.php -------------------------------------------------------------------------------- /tests/Decorators/LoggingDecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Decorators/LoggingDecoratorTest.php -------------------------------------------------------------------------------- /tests/Decorators/TransactionalCommandLockingDecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Decorators/TransactionalCommandLockingDecoratorTest.php -------------------------------------------------------------------------------- /tests/Resolvers/NativeCommandHandlerResolverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Resolvers/NativeCommandHandlerResolverTest.php -------------------------------------------------------------------------------- /tests/Stubs/Handlers/TestCommandWithNestedHandlerHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/Handlers/TestCommandWithNestedHandlerHandler.php -------------------------------------------------------------------------------- /tests/Stubs/LogDecoratorCommandBus.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/LogDecoratorCommandBus.php -------------------------------------------------------------------------------- /tests/Stubs/NonInterfaceImplementingCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/NonInterfaceImplementingCommand.php -------------------------------------------------------------------------------- /tests/Stubs/NonInterfaceImplementingCommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/NonInterfaceImplementingCommandHandler.php -------------------------------------------------------------------------------- /tests/Stubs/SelfHandlingCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/SelfHandlingCommand.php -------------------------------------------------------------------------------- /tests/Stubs/TestCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/TestCommand.php -------------------------------------------------------------------------------- /tests/Stubs/TestCommandHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/TestCommandHandler.php -------------------------------------------------------------------------------- /tests/Stubs/TestCommandWithNestedHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/TestCommandWithNestedHandler.php -------------------------------------------------------------------------------- /tests/Stubs/TestCommandWithoutHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/TestCommandWithoutHandler.php -------------------------------------------------------------------------------- /tests/Stubs/TestQueueableCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/TestQueueableCommand.php -------------------------------------------------------------------------------- /tests/Stubs/TestTransactionalCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamnicholson/Chief/HEAD/tests/Stubs/TestTransactionalCommand.php --------------------------------------------------------------------------------