Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusnordlander committed Oct 18, 2015
1 parent 5ed183d commit 8603976
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
21 changes: 21 additions & 0 deletions composer.json
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 src/DependencyInjection/FervoValidatedMessageExtension.php
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');
}
}
9 changes: 9 additions & 0 deletions src/FervoValidatedMessageBundle.php
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
{
}
9 changes: 9 additions & 0 deletions src/Resources/config/services.yml
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 }

0 comments on commit 8603976

Please sign in to comment.