| 1 | <?php |
||
| 12 | final class ReadController |
||
| 13 | { |
||
| 14 | const ACTION = 'getAction'; |
||
| 15 | |||
| 16 | /** @var ObjectRepository */ |
||
| 17 | private $repository; |
||
| 18 | /** @var EventDispatcherInterface */ |
||
| 19 | private $evm; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * ReadController constructor. |
||
| 23 | * |
||
| 24 | * @param ObjectRepository $repository |
||
| 25 | * @param EventDispatcherInterface $evm |
||
| 26 | */ |
||
| 27 | 6 | public function __construct(ObjectRepository $repository, EventDispatcherInterface $evm = null) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the entity by given identifiers |
||
| 35 | * |
||
| 36 | * @param mixed $identifier |
||
| 37 | * |
||
| 38 | * @return object |
||
| 39 | * @throws EntityNotFoundException |
||
| 40 | */ |
||
| 41 | 6 | public function getAction($identifier) |
|
| 53 | } |
||
| 54 |