From 3c7079cfe9ee74c9363416076d81e265832db859 Mon Sep 17 00:00:00 2001 From: jury89 Date: Wed, 30 Mar 2016 15:56:17 +0100 Subject: [PATCH] fixed bug on SalesforceParamConverter declaration --- Request/ParamConverter/SalesforceParamConverter.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Request/ParamConverter/SalesforceParamConverter.php b/Request/ParamConverter/SalesforceParamConverter.php index b8f5695..4ca1174 100644 --- a/Request/ParamConverter/SalesforceParamConverter.php +++ b/Request/ParamConverter/SalesforceParamConverter.php @@ -2,10 +2,10 @@ namespace Ddeboer\Salesforce\MapperBundle\Request\ParamConverter; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface; use Ddeboer\Salesforce\MapperBundle\Mapper; /** @@ -40,7 +40,7 @@ public function __construct(Mapper $mapper, array $mappings) /** * {@inheritdoc} */ - public function apply(Request $request, ConfigurationInterface $configuration) + public function apply(Request $request, ParamConverter $configuration) { // @todo Is it smart to do this based on variable name? Perhaps it's // better to, here also, look at class name? @@ -63,9 +63,8 @@ public function apply(Request $request, ConfigurationInterface $configuration) /** * {@inheritdoc} */ - public function supports(ConfigurationInterface $configuration) + public function supports(ParamConverter $configuration) { return in_array($configuration->getClass(), $this->mappings); } } -