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

Table of Contents

Interfaces

NotFoundExceptionInterface
No entry was found in the container.

Properties

$alternatives  : array<string|int, mixed>
$key  : string
$nonNestedAlternative  : string|null
$sourceId  : string|null
$sourceKey  : string|null

Methods

__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


        
On this page

Search results