__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module )
$kernel Symfony\Component\HttpKernel\KernelInterface
$module string The module wherefore this is the configuration-file.
Beispiel #1
0
 /**
  * Check if all required settings have been set
  *
  * @param \Symfony\Component\HttpKernel\KernelInterface $kernel
  * @param string                                        $module The module.
  */
 public function __construct(KernelInterface $kernel, $module)
 {
     parent::__construct($kernel, $module);
     $url = $this->getContainer()->has('url') ? $this->getContainer()->get('url') : null;
     // do the client ID check if we're not in the settings page
     if ($url != null && !in_array($url->getAction(), array('Settings', 'ImportGroups', 'LinkAccount', 'LoadClientInfo'))) {
         $this->checkForAccount();
         $this->checkForClientID();
         $this->checkForGroups();
     }
 }