| @@ 34-44 (lines=11) @@ | ||
| 31 | */ |
|
| 32 | protected $eventDispatcher; |
|
| 33 | ||
| 34 | public function __construct( |
|
| 35 | TemplateFactory $templateFactory, |
|
| 36 | ElementStorageInterface $elementStorage, |
|
| 37 | NamespaceLoader $namespaceLoader, |
|
| 38 | EventDispatcherInterface $eventDispatcher |
|
| 39 | ) { |
|
| 40 | $this->templateFactory = $templateFactory; |
|
| 41 | $this->elementStorage = $elementStorage; |
|
| 42 | $this->namespaceLoader = $namespaceLoader; |
|
| 43 | $this->eventDispatcher = $eventDispatcher; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| @@ 35-45 (lines=11) @@ | ||
| 32 | */ |
|
| 33 | private $eventDispatcher; |
|
| 34 | ||
| 35 | public function __construct( |
|
| 36 | TemplateFactory $templateFactory, |
|
| 37 | ElementStorageInterface $elementStorage, |
|
| 38 | NamespaceLoader $namespaceLoader, |
|
| 39 | EventDispatcherInterface $eventDispatcher |
|
| 40 | ) { |
|
| 41 | $this->templateFactory = $templateFactory; |
|
| 42 | $this->elementStorage = $elementStorage; |
|
| 43 | $this->namespaceLoader = $namespaceLoader; |
|
| 44 | $this->eventDispatcher = $eventDispatcher; |
|
| 45 | } |
|
| 46 | ||
| 47 | public function generate(): void |
|
| 48 | { |
|