Zend\Mvc\HttpMethodListener::__construct PHP Метод

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

public __construct ( boolean $enabled = true, array $allowedMethods = [] )
$enabled boolean
$allowedMethods array
    public function __construct($enabled = true, $allowedMethods = [])
    {
        $this->setEnabled($enabled);
        if (!empty($allowedMethods)) {
            $this->setAllowedMethods($allowedMethods);
        }
    }