Add order webhook processor

This commit is contained in:
Thibaud Fabre
2016-04-29 02:26:28 +02:00
parent 276b060c58
commit 957d588d6f
5 changed files with 150 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Alchemy\Phrasea\Webhook\Processor;
use Alchemy\Phrasea\Application;
class OrderNotificationProcessorFactory implements ProcessorFactory
{
/**
* @var Application
*/
private $application;
public function __construct(Application $application)
{
$this->application = $application;
}
/**
* @return ProcessorInterface
*/
public function createProcessor()
{
return new OrderNotificationProcessor(
$this->application['repo.orders'],
$this->application['repo.users']
);
}
}