eZ\Publish\Core\Base\Exceptions\ForbiddenException::__construct PHP Метод

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

public __construct ( string $messageTemplate, array $parameters = [] )
$messageTemplate string The message template, with placeholders for parameters. E.g. "Content with ID %contentId% could not be found".
$parameters array Hash map with param placeholder as key and its corresponding value. E.g. array('%contentId%' => 123).
    public function __construct($messageTemplate, array $parameters = [])
    {
        /** @Ignore */
        $this->setMessageTemplate($messageTemplate);
        $this->setParameters($parameters);
        parent::__construct($this->getBaseTranslation());
    }
ForbiddenException