| 1 | <?php |
||
| 17 | class BuildSchemaSubscriber implements EventSubscriberInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $schemaFilePath; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $schemaFilePath Path to Yaml schema definition supported by SchemaBuilder |
||
| 26 | */ |
||
| 27 | public function __construct(string $schemaFilePath) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns an array of events this subscriber wants to listen to. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | public static function getSubscribedEvents(): array |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param \EzSystems\DoctrineSchema\API\Event\SchemaBuilderEvent $event |
||
| 51 | */ |
||
| 52 | public function onBuildSchema(SchemaBuilderEvent $event): void |
||
| 58 | } |
||
| 59 |