coreParameters = $parameters->get('core'); } /** * @Route("/_ping", name="_ping") */ public function ping() { return $this->json(true); } /** * {@inheritdoc} */ protected function render(string $view, array $parameters = [], Response $response = null): Response { $parameters['section'] = $this->getSection(); $parameters['site_name'] = $this->coreParameters['site']['name']; $parameters['site_logo'] = $this->coreParameters['site']['logo']; $parameters['murph_version'] = defined('MURPH_VERSION') ? MURPH_VERSION : null; return parent::render($view, $parameters, $response); } abstract protected function getSection(): string; }