diff --git a/app/Resources/views/default b/app/Resources/views/default new file mode 120000 index 00000000..ec1e8911 --- /dev/null +++ b/app/Resources/views/default @@ -0,0 +1 @@ +/var/www/ez/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Resources/views/default \ No newline at end of file diff --git a/app/config/views.yml b/app/config/views.yml new file mode 100644 index 00000000..930443a1 --- /dev/null +++ b/app/config/views.yml @@ -0,0 +1,9 @@ +ezpublish: + system: + site: + content_view: + full: + default: + controller: AppBundle\Controller\TestController::xKeyAction + template: default/content/full.html.twig + match: true \ No newline at end of file diff --git a/docker/apache/parameters.yml b/docker/apache/parameters.yml index dc072695..cf31580f 100644 --- a/docker/apache/parameters.yml +++ b/docker/apache/parameters.yml @@ -1,5 +1,6 @@ imports: - { resource: cache_pool/cache.redis.yml } + - { resource: views.yml } parameters: #TODO: May move all this to .env file or Dockerfile diff --git a/src/AppBundle/Controller/TestController.php b/src/AppBundle/Controller/TestController.php new file mode 100644 index 00000000..1ec74ca1 --- /dev/null +++ b/src/AppBundle/Controller/TestController.php @@ -0,0 +1,23 @@ +headers->set('X-Location-Id', implode(',', $locationIds)); + $response->headers->set('xkey', 'l'.implode(' l', $locationIds)); + + $view->setResponse($response); + + return $view; + } +}