Nelmio\SecurityBundle\EventListener\ForcedSslListener::__construct PHP Метод

__construct() публичный Метод

public __construct ( $hstsMaxAge, $hstsSubdomains, $hstsPreload = false, array $whitelist = [], array $hosts = [] )
$whitelist array
$hosts array
    public function __construct($hstsMaxAge, $hstsSubdomains, $hstsPreload = false, array $whitelist = array(), array $hosts = array())
    {
        $this->hstsMaxAge = $hstsMaxAge;
        $this->hstsSubdomains = $hstsSubdomains;
        $this->hstsPreload = $hstsPreload;
        $this->whitelist = $whitelist ? '(' . implode('|', $whitelist) . ')' : null;
        $this->hosts = $hosts ? '(' . implode('|', $hosts) . ')' : null;
    }