W3cubDocs

/Symfony 4.1

DuplicateKeyException

class DuplicateKeyException extends InvalidConfigurationException

This exception is thrown whenever the key of an array is not unique. This can only be the case if the configuration is coming from an XML file.

Methods

setPath($path) from InvalidConfigurationException
getPath() from InvalidConfigurationException
addHint(string $hint)

Adds extra information that is suffixed to the original exception message.

from InvalidConfigurationException

Details

setPath($path)

Parameters

$path

getPath()

addHint(string $hint)

Adds extra information that is suffixed to the original exception message.

Parameters

string $hint