-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce abstraction layer to create different filter services * Add missing headers * Apply php-cs-fixer changes * Change to provider instead of factory, move trait * Cleanup * Update qodana.yml * Try to restructure project setup (#43) * Try to restructure folders * More restructuring * Split up security * Restructure and rename * Apply php-cs-fixer changes --------- Co-authored-by: mattamon <[email protected]> * Remove unused const * Make OpenApiService readonly * Order yaml file loads by alphabet * Exclude attributes for long inheritance chain * Remove php ending * Restructure security and icon services * Try to restructure more * Refactor to the max! * Apply php-cs-fixer changes * Include use statements * Some more imports were missing * Update qodana baseline --------- Co-authored-by: mattamon <[email protected]> Co-authored-by: Herbert Roth <[email protected]>
- Loading branch information
1 parent
3080b8c
commit f78d89e
Showing
205 changed files
with
4,778 additions
and
2,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
|
||
return [ | ||
'Pimcore\\Bundle\\StudioApiBundle\\PimcoreStudioApiBundle' => ['all' => true], | ||
'Pimcore\\Bundle\\StudioBackendBundle\\PimcoreStudioBackendBundle' => ['all' => true], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
# controllers are imported separately to make sure they're public | ||
# and have a tag that allows actions to type-hint services | ||
Pimcore\Bundle\StudioBackendBundle\Asset\Controller\: | ||
resource: '../src/Asset/Controller' | ||
public: true | ||
tags: [ 'controller.service_arguments' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
|
||
# controllers are imported separately to make sure they're public | ||
# and have a tag that allows actions to type-hint services | ||
Pimcore\Bundle\StudioBackendBundle\Authorization\Controller\: | ||
resource: '../src/Authorization/Controller' | ||
public: true | ||
tags: [ 'controller.service_arguments' ] | ||
|
||
|
||
Pimcore\Bundle\StudioBackendBundle\Authorization\Service\TokenServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\Authorization\Service\TokenService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
# Hydrators | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\ArchiveHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\ArchiveHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\AudioHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\AudioHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\DocumentHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\DocumentHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\FolderHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\FolderHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\ImageHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\ImageHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\TextHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\TextHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\UnknownHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\UnknownHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\VideoHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\VideoHydrator | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\MetaDataHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\MetaDataHydrator | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\AssetHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\AssetHydrator | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\PermissionsHydratorInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\PermissionsHydrator | ||
|
||
# Services | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\AssetHydratorServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\AssetHydratorService | ||
arguments: | ||
$assetHydratorLocator: '@open_search.asset_hydrator.service_locator' | ||
|
||
|
||
# Assets | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\AssetSearchService | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapterInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\AssetSearchAdapter | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Provider\AssetQueryProviderInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Provider\AssetQueryProvider | ||
|
||
#Data Objects | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\DataObjectSearchServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\DataObjectSearchService | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\DataObjectSearchAdapterInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Adapter\DataObjectSearchAdapter | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Provider\DataObjectQueryProviderInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Provider\DataObjectQueryProvider | ||
|
||
|
||
#Service Locator | ||
open_search.asset_hydrator.service_locator: | ||
class: Symfony\Component\DependencyInjection\ServiceLocator | ||
tags: [ 'container.service_locator' ] | ||
arguments: | ||
- Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Archive: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\ArchiveHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Audio: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\AudioHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Document: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\DocumentHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Folder: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\FolderHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Image: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\ImageHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Text: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\TextHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Unknown: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\UnknownHydratorInterface' | ||
Pimcore\Bundle\GenericDataIndexBundle\Model\Search\Asset\SearchResult\SearchResultItem\Video: '@Pimcore\Bundle\StudioBackendBundle\DataIndex\Hydrator\Asset\VideoHydratorInterface' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
#Filter | ||
|
||
#Common | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\FilterLoaderInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\Loader\TaggedIteratorAdapter | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\OpenSearchFilterInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\DataIndex\OpenSearchFilter | ||
tags: [ 'pimcore.studio_api.filter_service' ] | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\PageFilter: | ||
tags: [ 'pimcore.studio_api.open_search.filter' ] | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\PageSizeFilter: | ||
tags: [ 'pimcore.studio_api.open_search.filter' ] | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\ExcludeFolderFilter: | ||
tags: [ 'pimcore.studio_api.open_search.filter' ] | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\IdSearchFilter: | ||
tags: [ 'pimcore.studio_api.open_search.filter' ] | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\ParentIdFilter: | ||
tags: [ 'pimcore.studio_api.open_search.filter' ] | ||
|
||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\PathFilter: | ||
tags: [ 'pimcore.studio_api.open_search.filter' ] | ||
|
||
# DataObject | ||
Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\DataObject\ClassNameFilter: | ||
tags: [ 'pimcore.studio_api.open_search.data_object.filter' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
# controllers are imported separately to make sure they're public | ||
# and have a tag that allows actions to type-hint services | ||
Pimcore\Bundle\StudioBackendBundle\DataObject\Controller\: | ||
resource: '../src/DataObject/Controller' | ||
public: true | ||
tags: [ 'controller.service_arguments' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
#Factory | ||
Pimcore\Bundle\StudioBackendBundle\Factory\QueryFactoryInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\Factory\QueryFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
Pimcore\Bundle\StudioBackendBundle\Icon\Service\IconServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\Icon\Service\IconService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
|
||
# controllers are imported separately to make sure they're public | ||
# and have a tag that allows actions to type-hint services | ||
Pimcore\Bundle\StudioBackendBundle\OpenApi\Controller\: | ||
resource: '../src/OpenApi/Controller' | ||
public: true | ||
tags: [ 'controller.service_arguments' ] | ||
|
||
|
||
Pimcore\Bundle\StudioBackendBundle\OpenApi\Service\OpenApiServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\OpenApi\Service\OpenApiService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
pimcore: | ||
translations: | ||
domains: | ||
- studio | ||
- studio | ||
|
||
pimcore_studio_backend: | ||
open_api_scan_paths: | ||
- "%kernel.project_dir%/vendor/pimcore/studio-api-bundle/src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
#Voters | ||
Pimcore\Bundle\StudioBackendBundle\Security\Voter\AuthorizationVoter: | ||
arguments: ['@request_stack'] | ||
tags: | ||
- { name: security.voter } | ||
|
||
Pimcore\Bundle\StudioBackendBundle\Security\Voter\PublicAuthorizationVoter: | ||
arguments: [ '@request_stack' ] | ||
tags: | ||
- { name: security.voter } | ||
|
||
Pimcore\Bundle\StudioBackendBundle\Security\Service\SecurityServiceInterface: | ||
class: Pimcore\Bundle\StudioBackendBundle\Security\Service\SecurityService |
Oops, something went wrong.