Documentation

ParameterNotFoundException extends InvalidArgumentException
in package
implements NotFoundExceptionInterface

This exception is thrown when a non-existent parameter is used.

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes and Traits

NotFoundExceptionInterface
No entry was found in the container.

Table of Contents

$alternatives  : mixed
$key  : mixed
$nonNestedAlternative  : mixed
$sourceId  : mixed
$sourceKey  : mixed
__construct()  : mixed
getKey()  : mixed
getSourceId()  : mixed
getSourceKey()  : mixed
setSourceId()  : mixed
setSourceKey()  : mixed
updateRepr()  : mixed

Properties

Methods

__construct()

public __construct(string $key[, string|null $sourceId = null ][, string|null $sourceKey = null ][, Throwable|null $previous = null ][, array<string|int, string> $alternatives = [] ][, string|null $nonNestedAlternative = null ]) : mixed
Parameters
$key : string

The requested parameter key

$sourceId : string|null = null

The service id that references the non-existent parameter

$sourceKey : string|null = null

The parameter key that references the non-existent parameter

$previous : Throwable|null = null

The previous exception

$alternatives : array<string|int, string> = []

Some parameter name alternatives

$nonNestedAlternative : string|null = null

The alternative parameter name when the user expected dot notation for nested parameters

Return values
mixed

setSourceId()

public setSourceId(string|null $sourceId) : mixed
Parameters
$sourceId : string|null
Return values
mixed

setSourceKey()

public setSourceKey(string|null $sourceKey) : mixed
Parameters
$sourceKey : string|null
Return values
mixed

Search results