mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add order webhook processor
This commit is contained in:
@@ -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']
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user