/**
* 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();
}
}