Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager::add
Adds a parameter converter.
Converters match either explicitly via $name or by iteration over all converters with a $priority. If you pass a $priority = null then the added converter will not be part of the iteration chain and can only be invoked explicitly.
Signature
public function add(ParamConverterInterface
$converter,
[integer
$priority = 0,
[string
$name = null]] )
Parameters
$converter
— Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface- A ParamConverterInterface instance
$priority
— integer- The priority (between -10 and 10).
$name
— string- Name of the converter.