Skip to content

Commit

Permalink
Remove the configuration to avoid any security concerns.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 27, 2019
1 parent cb0f7e9 commit 0dca6c7
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Controller/Homepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<<EOF
$body = <<< 'EOF'
<p>You have been redirected here by default. You are most probably using the default CAS configuration.</p>
<p>Here's a dump of the current enabled configuration:</p>
<textarea>$configuration</textarea>
<p>The default CAS bundle configuration is installed in <code>config/packages/dev/cas_bundle.yaml</code></p>
<p>The default CAS bundle configuration should be installed in <code>config/packages/dev/cas_bundle.yaml</code></p>
<p>Please update your configuration and replace <code>cas_bundle_homepage</code> with an existing route of your app.</p>
EOF;
Expand Down

0 comments on commit 0dca6c7

Please sign in to comment.