schmittjoh/JMSDiExtraBundle — pull request #40 by zerkalica (2012-07-27 09:46:37+00:00)
Title: Fixed bug with multiple annotations

In this example, first ParamConverter annotation not used.
```
/*
* @ParamConverter("contract", class="MillwrightContractBundle:Contract", options={"id" = "contract"})
* @ParamConverter("media", class="MillwrightUploadBundle:Media", options={"id" = "media"})
* @Secure (roles="ROLE_SALES_EMPLOYEE, ROLE_CONTENT_EMPLOYEE")
*/
public function deleteFileAction(ContractInterface $contract, MediaInterface $media)
{
...
}
```
Problem in JMS\DiExtraBundle\EventListener\ControllerListener::onKernelController

$request->attributes->set() rewrites first loaded configuration annotation with same alias.