| 1 | <?php |
||
| 16 | class ObjectManagerNameInitializer extends AbstractContextInitializer |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Имя параметра из контекста, значение которого содержит имя ObjectManager'a |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | const OBJECT_MANAGER_NAME = 'objectManagerName'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | * @throws \Nnx\DoctrineFixtureModule\FixtureInitializer\Exception\RuntimeException |
||
| 29 | */ |
||
| 30 | public function purge(FixtureEvent $event) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | * @throws \Nnx\DoctrineFixtureModule\FixtureInitializer\Exception\RuntimeException |
||
| 38 | */ |
||
| 39 | public function import(FixtureEvent $event) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Устанавливает зависимости в фикстуру |
||
| 46 | * |
||
| 47 | * @param FixtureEvent $event |
||
| 48 | * |
||
| 49 | * @throws \Nnx\DoctrineFixtureModule\FixtureInitializer\Exception\RuntimeException |
||
| 50 | */ |
||
| 51 | protected function injected(FixtureEvent $event) |
||
| 62 | } |
||
| 63 |