Skip to content

Commit

Permalink
Restructure request param converters
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Sep 17, 2020
1 parent c8738f4 commit f3ff81e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Netgen\Bundle\EzPlatformSiteApiBundle\Converter;
namespace Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter;

use Netgen\EzPlatformSiteApi\API\Values\Content;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Netgen\Bundle\EzPlatformSiteApiBundle\Converter;
namespace Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter;

use Netgen\EzPlatformSiteApi\API\Values\Location;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Netgen\Bundle\EzPlatformSiteApiBundle\Converter;
namespace Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter;

use Netgen\EzPlatformSiteApi\API\LoadService;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
Expand Down
4 changes: 2 additions & 2 deletions bundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ services:
- { name: router, priority: 200 }

netgen.ezplatform_site.param_converter.location:
class: Netgen\Bundle\EzPlatformSiteApiBundle\Converter\ContentParamConverter
class: Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter\ContentParamConverter
arguments:
- '@netgen.ezplatform_site.load_service'
tags:
- { name: request.param_converter, priority: -1 }

netgen.ezplatform_site.param_converter.content:
class: Netgen\Bundle\EzPlatformSiteApiBundle\Converter\LocationParamConverter
class: Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter\LocationParamConverter
arguments:
- '@netgen.ezplatform_site.load_service'
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Netgen\Bundle\EzPlatformSiteApiBundle\Tests\Converter;
namespace Netgen\Bundle\EzPlatformSiteApiBundle\Tests\Request\ParamConverter;

use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Netgen\Bundle\EzPlatformSiteApiBundle\Tests\Converter;
namespace Netgen\Bundle\EzPlatformSiteApiBundle\Tests\Request\ParamConverter;

use Netgen\Bundle\EzPlatformSiteApiBundle\Converter\ContentParamConverter;
use Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter\ContentParamConverter;
use Netgen\EzPlatformSiteApi\API\LoadService;
use Netgen\EzPlatformSiteApi\API\Values\Content;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -18,7 +18,7 @@ final class ContentParamConverterTest extends AbstractParamConverterTest
const CONTENT_CLASS = Content::class;

/**
* @var \Netgen\Bundle\EzPlatformSiteApiBundle\Converter\ContentParamConverter
* @var \Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter\ContentParamConverter
*/
protected $converter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

declare(strict_types=1);

namespace Netgen\Bundle\EzPlatformSiteApiBundle\Tests\Converter;
namespace Netgen\Bundle\EzPlatformSiteApiBundle\Tests\Request\ParamConverter;

use Netgen\Bundle\EzPlatformSiteApiBundle\Converter\LocationParamConverter;
use Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter\LocationParamConverter;
use Netgen\EzPlatformSiteApi\API\LoadService;
use Netgen\EzPlatformSiteApi\API\Values\Location;
use Symfony\Component\HttpFoundation\Request;
Expand All @@ -18,7 +18,7 @@ final class LocationParamConverterTest extends AbstractParamConverterTest
const LOCATION_CLASS = Location::class;

/**
* @var \Netgen\Bundle\EzPlatformSiteApiBundle\Converter\LocationParamConverter
* @var \Netgen\Bundle\EzPlatformSiteApiBundle\Request\ParamConverter\LocationParamConverter
*/
protected $converter;

Expand Down

0 comments on commit f3ff81e

Please sign in to comment.