protected function configureOriginPolicy(): void
    {
        $class = $this->options['origin_policy_class'];
        $this->originPolicy = new $class($this->options['allowed_origins']);

        if ($this->options['check_origin']) {
            $this->originPolicy->listen($this);
        }
    }
protected function configureOriginPolicy(): void
    {
        $class = $this->options['origin_policy_class'];
        $this->originPolicy = new $class($this->options['allowed_origins']);

        if ($this->options['check_origin']) {
            $this->originPolicy->listen($this);
        }
    }
protected function configureOriginPolicy ( ) : void { $ class = $ this -> options [ 'origin_policy_class' ] ; $ this -> originPolicy = new $ class ( $ this -> options [ 'allowed_origins' ] ) ; if ( $ this -> options [ 'check_origin' ] ) { $ this -> originPolicy -> listen ( $ this ) ; } }
Configures the origin policy
Configures the origin policy