Submit
Path:
~
/
/
usr
/
local
/
psa
/
admin
/
plib
/
modules
/
grafana
/
vendor
/
mezzio
/
mezzio
/
src
/
Container
/
Exception
/
File Content:
InvalidTrustedHeaderConfigurationException.php
<?php declare (strict_types=1); namespace PleskGrafana\Mezzio\Container\Exception; use PleskGrafana\Mezzio\ConfigProvider; use PleskGrafana\Mezzio\Exception\RuntimeException; use function gettype; use function is_object; use function sprintf; class InvalidTrustedHeaderConfigurationException extends RuntimeException implements ExceptionInterface { public static function forHeaders(mixed $headers) : self { $type = is_object($headers) ? $headers::class : gettype($headers); return new self(sprintf('Invalid %s.%s.%s.%s configuration; received %s; should be list<string>', ConfigProvider::DIACTOROS_CONFIG_KEY, ConfigProvider::DIACTOROS_SERVER_REQUEST_FILTER_CONFIG_KEY, ConfigProvider::DIACTOROS_X_FORWARDED_FILTER_CONFIG_KEY, ConfigProvider::DIACTOROS_TRUSTED_HEADERS_CONFIG_KEY, $type)); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
ExceptionInterface.php
172 bytes
0644
InvalidServiceException.php
347 bytes
0644
InvalidTrustedHeaderConfigurationException.php
825 bytes
0644
InvalidTrustedProxyConfigurationException.php
824 bytes
0644
N4ST4R_ID | Naxtarrr