Started to integrate the new configuration system (still WIP/dirty)

This commit is contained in:
Kévin Gomez 2014-09-09 21:59:13 +01:00
commit 09e4da0c19
13 changed files with 53 additions and 413 deletions

View file

@ -4,7 +4,6 @@ namespace Propel\PropelBundle\Request\ParamConverter;
use Propel\PropelBundle\Util\PropelInflector;
use Propel\Runtime\ActiveQuery\Criteria;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@ -66,7 +65,7 @@ class PropelParamConverter implements ParamConverterInterface
/**
* @param Request $request
* @param ConfigurationInterface $configuration
* @param ParamConverter $configuration
*
* @return bool
*
@ -74,7 +73,7 @@ class PropelParamConverter implements ParamConverterInterface
* @throws NotFoundHttpException
* @throws \Exception
*/
public function apply(Request $request, ConfigurationInterface $configuration)
public function apply(Request $request, ParamConverter $configuration)
{
$class = $configuration->getClass();
$classQuery = $class . 'Query';
@ -148,11 +147,11 @@ class PropelParamConverter implements ParamConverterInterface
}
/**
* @param ConfigurationInterface $configuration
* @param ParamConverter $configuration
*
* @return bool
*/
public function supports(ConfigurationInterface $configuration)
public function supports(ParamConverter $configuration)
{
if (null === ($classname = $configuration->getClass())) {
return false;