Skip to content

Commit

Permalink
Added missing renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kolb committed Aug 24, 2024
1 parent 401d94c commit 366c388
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use DigitalCraftsman\CQSRouting\RequestDecoder\JsonRequestDecoder;
use DigitalCraftsman\CQSRouting\ResponseConstructor\EmptyResponseConstructor;
use DigitalCraftsman\CQSRouting\ResponseConstructor\SerializerJsonResponseConstructor;
// Automatically generated by Symfony though a config builder (see https://symfony.com/doc/current/configuration.html#config-config-builder).
use Symfony\Config\CqrsConfig;
use Symfony\Config\CqsRoutingConfig;

return static function (CqsRoutingConfig $cqsRoutingConfig) {
$cqsRoutingConfig->queryController()
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use DigitalCraftsman\CQSRouting\RequestDecoder\JsonRequestDecoder;
use DigitalCraftsman\CQSRouting\ResponseConstructor\EmptyJsonResponseConstructor;
use DigitalCraftsman\CQSRouting\ResponseConstructor\SerializerJsonResponseConstructor;
// Automatically generated by Symfony though a config builder (see https://symfony.com/doc/current/configuration.html#config-config-builder).
use Symfony\Config\CqrsConfig;
use Symfony\Config\CqsRoutingConfig;

return static function (CqsRoutingConfig $cqsRoutingConfig) {

Expand Down Expand Up @@ -62,7 +62,7 @@ return static function (CqsRoutingConfig $cqsRoutingConfig) {
Or if your configuration still uses yaml, it looks like this:

```yaml
cqrs:
cqs_routing:

command_controller:

Expand Down
4 changes: 2 additions & 2 deletions src/DTOConstructor/DTOConstructorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* The DTO constructor is there to construct the command or query from the request data. It also has to throw exceptions when there is data
* missing. Depending on the implementation that might already be handled by the hydration method.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examplesl/dto-constructor.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examplesl/dto-constructor.md
*/
interface DTOConstructorInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/DTOValidator/DTOValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* - Validate any of the value objects in it (that's the task of the constructors).
* - Validate any kind of business logic including access validation.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examples/dto-validator.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examples/dto-validator.md
*/
interface DTOValidatorInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/HandlerWrapper/HandlerWrapperInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* It must not be used to:
* - Handle any kind of business logic.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examples/handler-wrapper.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examples/handler-wrapper.md
*/
interface HandlerWrapperInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* It must not be used to:
* - Validate the request data in any way. That must be handled in the DTO validator.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examples/request-data-transformer.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examples/request-data-transformer.md
*/
interface RequestDataTransformerInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/RequestDecoder/RequestDecoderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* It must not be used to:
* - Validate the request in any way.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examples/request-decoder.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examples/request-decoder.md
*/
interface RequestDecoderInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/RequestValidator/RequestValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* - Validate request content according to business rules.
* - Validate the existence of content that is needed for construction of command or query objects. That must be handled in the DTO constructor.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examples/request-validator.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examples/request-validator.md
*/
interface RequestValidatorInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/ResponseConstructor/ResponseConstructorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* The query handler on the other hand will return a value nearly every time and depending on the use case, the value might be serialized to
* JSON, send as binary data or even be streamed as part of a streamed response.
*
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqrs/blob/main/docs/examples/response-constructor.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/process.md
* @see https://github.com/digital-craftsman-de/cqs-routing/blob/main/docs/examples/response-constructor.md
*/
interface ResponseConstructorInterface
{
Expand Down
4 changes: 2 additions & 2 deletions tests/DependencyInjection/CQSRoutingExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public function load_works(): void
{
// -- Arrange
$container = new ContainerBuilder();
$cqrsExtension = new CQSRoutingExtension();
$cqsRoutingExtension = new CQSRoutingExtension();

// -- Act
$cqrsExtension->load([], $container);
$cqsRoutingExtension->load([], $container);

// -- Assert
self::assertCount(1, $container->findTaggedServiceIds('cqs_routing.request_decoder'));
Expand Down
2 changes: 1 addition & 1 deletion tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function configuration_can_be_processed(): void
$processor = new Processor();
$configuration = new Configuration();
$configurationData = [
'cqrs' => [
'cqs_routing' => [
'command_controller' => [
'default_request_decoder_class' => JsonRequestDecoder::class,
'default_dto_constructor_class' => SerializerDTOConstructor::class,
Expand Down

0 comments on commit 366c388

Please sign in to comment.