migrator = $migrator; $this->pageRenderer = $pageRenderer; $this->wp = $wp; $this->workflowStorage = $workflowStorage; } public function render() { if (!$this->migrator->hasSchema()) { $this->migrator->createSchema(); } $this->pageRenderer->displayPage('automation.html', [ 'api' => [ 'root' => rtrim($this->wp->escUrlRaw($this->wp->restUrl()), '/'), 'nonce' => $this->wp->wpCreateNonce('wp_rest'), ], 'workflowCount' => $this->workflowStorage->getWorkflowCount(), ]); } }