mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix filename
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Webhook\Processor;
|
||||
|
||||
class CallableProcessorFactory implements ProcessorFactory
|
||||
{
|
||||
|
||||
private $factoryMethod;
|
||||
|
||||
public function __construct($callable)
|
||||
{
|
||||
$this->factoryMethod = $callable;
|
||||
}
|
||||
|
||||
public function createProcessor()
|
||||
{
|
||||
$factoryMethod = $this->factoryMethod;
|
||||
|
||||
return $factoryMethod();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user