migrator = $migrator; $this->pageRenderer = $pageRenderer; $this->wp = $wp; } public function render() { $this->wp->wpEnqueueStyle('wp-components'); 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'), ], ]); } }