1 | <?php |
||
13 | final class DeleteController |
||
14 | { |
||
15 | const ACTION = 'deleteAction'; |
||
16 | |||
17 | /** @var ObjectRepository */ |
||
18 | private $repository; |
||
19 | /** @var ObjectManager */ |
||
20 | private $manager; |
||
21 | /** @var EventDispatcherInterface */ |
||
22 | private $evm; |
||
23 | |||
24 | /** |
||
25 | * DeleteController constructor. |
||
26 | * |
||
27 | * @param ObjectRepository $repository |
||
28 | * @param ObjectManager $manager |
||
29 | * @param EventDispatcherInterface $evm |
||
30 | */ |
||
31 | 4 | public function __construct( |
|
40 | |||
41 | /** |
||
42 | * Removes the entity by given identifiers |
||
43 | * |
||
44 | * @param mixed $identifier |
||
45 | * @throws EntityNotFoundException |
||
46 | */ |
||
47 | 4 | public function deleteAction($identifier) |
|
60 | } |
||
61 |