Skip to content

Commit

Permalink
Try to restructure more
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Apr 25, 2024
1 parent 64bd343 commit 95b8e54
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
13 changes: 13 additions & 0 deletions config/filters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
_defaults:
autowire: true
autoconfigure: true
public: false

#Factory

Pimcore\Bundle\StudioBackendBundle\Filter\Service\FilterServiceProviderInterface:
class: Pimcore\Bundle\StudioBackendBundle\Filter\Service\FilterServiceProvider

Pimcore\Bundle\StudioBackendBundle\Filter\Service\FilterServiceLoaderInterface:
class: Pimcore\Bundle\StudioBackendBundle\Filter\Service\Loader\TaggedIteratorAdapter
13 changes: 0 additions & 13 deletions config/providers.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion src/Asset/Controller/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Pimcore\Bundle\StudioBackendBundle\DataIndex\OpenSearchFilterInterface;
use Pimcore\Bundle\StudioBackendBundle\DataIndex\Request\ElementParameters;
use Pimcore\Bundle\StudioBackendBundle\Exception\InvalidQueryTypeException;
use Pimcore\Bundle\StudioBackendBundle\Filter\Service\FilterServiceProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Parameters\Query\ExcludeFoldersParameter;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Parameters\Query\IdSearchTermParameter;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Parameters\Query\PageParameter;
Expand All @@ -39,7 +40,6 @@
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Response\Property\AnyOfAsset;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Response\SuccessResponse;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Config\Tags;
use Pimcore\Bundle\StudioBackendBundle\Provider\FilterServiceProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Util\Traits\PaginatedResponseTrait;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpKernel\Attribute\MapQueryString;
Expand Down
2 changes: 1 addition & 1 deletion src/DataObject/Controller/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Pimcore\Bundle\StudioBackendBundle\DataIndex\OpenSearchFilterInterface;
use Pimcore\Bundle\StudioBackendBundle\DataIndex\Request\DataObjectParameters;
use Pimcore\Bundle\StudioBackendBundle\Exception\InvalidQueryTypeException;
use Pimcore\Bundle\StudioBackendBundle\Filter\Service\FilterServiceProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Parameters\Query\ClassNameParameter;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Parameters\Query\ExcludeFoldersParameter;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Parameters\Query\IdSearchTermParameter;
Expand All @@ -40,7 +41,6 @@
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Response\Property\DataObjectCollection;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Attributes\Response\SuccessResponse;
use Pimcore\Bundle\StudioBackendBundle\OpenApi\Config\Tags;
use Pimcore\Bundle\StudioBackendBundle\Provider\FilterServiceProviderInterface;
use Pimcore\Bundle\StudioBackendBundle\Util\Traits\PaginatedResponseTrait;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpKernel\Attribute\MapQueryString;
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/PimcoreStudioBackendExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function load(array $configs, ContainerBuilder $container): void
$loader->load('data_objects.yaml');
$loader->load('event_subscribers.yaml');
$loader->load('factories.yaml');
$loader->load('filters.yaml');
$loader->load('icon.yaml');
$loader->load('open_api.yaml');
$loader->load('providers.yaml');
$loader->load('security.yaml');
$loader->load('services.yaml');
$loader->load('translation.yaml');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Provider;
namespace Pimcore\Bundle\StudioBackendBundle\Filter\Service;

/**
* @internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Provider;
namespace Pimcore\Bundle\StudioBackendBundle\Filter\Service;

use Pimcore\Bundle\StudioBackendBundle\Exception\InvalidFilterServiceTypeException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Provider;
namespace Pimcore\Bundle\StudioBackendBundle\Filter\Service;

interface FilterServiceProviderInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Provider\Loader;
namespace Pimcore\Bundle\StudioBackendBundle\Filter\Service\Loader;

use Pimcore\Bundle\StudioBackendBundle\Provider\FilterServiceLoaderInterface;
use Pimcore\Bundle\StudioBackendBundle\Filter\Service\FilterServiceLoaderInterface;
use Symfony\Component\DependencyInjection\Attribute\TaggedIterator;

/**
Expand Down

0 comments on commit 95b8e54

Please sign in to comment.