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 |
||
43 | |||
44 | /** |
||
45 | * @param \EzSystems\DoctrineSchema\API\Event\SchemaBuilderEvent $event |
||
46 | */ |
||
47 | public function onBuildSchema(SchemaBuilderEvent $event): void |
||
53 | } |
||
54 |