public function ParameterNotFoundException::__construct in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Exception/ParameterNotFoundException.php \Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException::__construct()
Constructor.
Parameters
string $key The requested parameter key:
string $sourceId The service id that references the non-existent parameter:
string $sourceKey The parameter key that references the non-existent parameter:
\Exception $previous The previous exception:
string[] $alternatives Some parameter name alternatives:
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Exception/ ParameterNotFoundException.php, line 35
Class
- ParameterNotFoundException
- This exception is thrown when a non-existent parameter is used.
Namespace
Symfony\Component\DependencyInjection\ExceptionCode
public function __construct($key, $sourceId = null, $sourceKey = null, \Exception $previous = null, array $alternatives = array()) {
$this->key = $key;
$this->sourceId = $sourceId;
$this->sourceKey = $sourceKey;
$this->alternatives = $alternatives;
parent::__construct('', 0, $previous);
$this
->updateRepr();
}