-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ed183d
commit 8603976
Showing
4 changed files
with
59 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "fervo/validated-message-bundle", | ||
"description": "A bundle for ValidatedMessage", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Magnus Nordlander", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"fervo/validated-message": "~1.0", | ||
"symfony/framework-bundle": "~2.3", | ||
"simple-bus/symfony-bridge": "~4.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Fervo\\ValidatedMessageBundle\\": "src" | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/DependencyInjection/FervoValidatedMessageExtension.php
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,20 @@ | ||
<?php | ||
|
||
namespace Fervo\ValidatedMessageBundle\DependencyInjection; | ||
|
||
use Symfony\Component\Config\FileLocator; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Loader; | ||
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | ||
|
||
class FervoValidatedMessageExtension extends Extension | ||
{ | ||
public function load(array $configs, ContainerBuilder $container) | ||
{ | ||
$loader = new Loader\YamlFileLoader( | ||
$container, | ||
new FileLocator(__DIR__.'/../Resources/config') | ||
); | ||
$loader->load('services.yml'); | ||
} | ||
} |
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,9 @@ | ||
<?php | ||
|
||
namespace Fervo\ValidatedMessageBundle; | ||
|
||
use Symfony\Component\HttpKernel\Bundle\Bundle; | ||
|
||
class FervoValidatedMessageBundle extends Bundle | ||
{ | ||
} |
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,9 @@ | ||
services: | ||
fervo.validated_message.middleware: | ||
class: Fervo\ValidatedMessage\ValidatingMiddleware | ||
public: false | ||
arguments: | ||
- @validator | ||
tags: | ||
- { name: command_bus_middleware, priority: 100 } | ||
- { name: event_bus_middleware, priority: 100 } |