From 0dca6c720fdbff9d69c41e0a767b93c62536db97 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 27 Nov 2019 11:18:06 +0100 Subject: [PATCH] Remove the configuration to avoid any security concerns. --- src/Controller/Homepage.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Controller/Homepage.php b/src/Controller/Homepage.php index 1b23bb8..ea1bda0 100644 --- a/src/Controller/Homepage.php +++ b/src/Controller/Homepage.php @@ -4,28 +4,22 @@ namespace drupol\CasBundle\Controller; -use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; /** * Class Homepage. */ -final class Homepage extends AbstractController +final class Homepage { /** * @return \Symfony\Component\HttpFoundation\Response */ public function __invoke() { - $configuration = print_r($this->container->get('parameter_bag')->get('cas'), true); - - $body = <<You have been redirected here by default. You are most probably using the default CAS configuration.

-

Here's a dump of the current enabled configuration:

- - -

The default CAS bundle configuration is installed in config/packages/dev/cas_bundle.yaml

+

The default CAS bundle configuration should be installed in config/packages/dev/cas_bundle.yaml

Please update your configuration and replace cas_bundle_homepage with an existing route of your app.

EOF;