1 | <?php |
||
15 | final class CreateController |
||
16 | { |
||
17 | const ACTION = 'createAction'; |
||
18 | |||
19 | /** @var ObjectManager */ |
||
20 | private $manager; |
||
21 | /** @var EventDispatcherInterface */ |
||
22 | private $evm; |
||
23 | /** @var EntityFactoryInterface */ |
||
24 | private $factory; |
||
25 | /** @var EntityProcessorInterface */ |
||
26 | private $processor; |
||
27 | |||
28 | /** |
||
29 | * CreateController constructor. |
||
30 | * |
||
31 | * @param EntityProcessorInterface $processor |
||
32 | * @param ObjectManager $manager |
||
33 | * @param EntityFactoryInterface $factory |
||
34 | * @param EventDispatcherInterface $evm |
||
35 | */ |
||
36 | public function __construct( |
||
47 | |||
48 | /** |
||
49 | * @param mixed $data |
||
50 | * |
||
51 | * @return object |
||
52 | * @throws EntityProcessingException |
||
53 | */ |
||
54 | public function createAction($data) |
||
67 | } |
||
68 |