Skip to content

Commit

Permalink
[shopsys] Upgraded yaml standards package vol. 2 (#2278)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik authored Apr 8, 2024
2 parents 2f52818 + b20af80 commit 8878bad
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/Resources/config/frontend_api.yaml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
shopsys.frontend_api.keys_filepath: '%kernel.project_dir%/config/frontend-api'
shopsys.frontend_api.domains:
- 1
- 2
shopsys.frontend_api.keys_filepath: '%kernel.project_dir%/config/frontend-api'
80 changes: 40 additions & 40 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
services:
_defaults:
autowire: true
autoconfigure: true
public: false
autowire: true
bind:
Overblog\DataLoader\DataLoaderInterface $imagesBatchLoader: '@images_batch_loader'
Overblog\DataLoader\DataLoaderInterface $firstImageBatchLoader: '@first_image_batch_loader'
public: false

Shopsys\FrontendApiBundle\:
resource: '../../**/*{Facade,Factory,Mapper,Mutation,Query,Repository,Subscriber,Validator,Provider,Loader}.php'
Expand All @@ -16,75 +16,75 @@ services:
tags:
- { name: overblog_graphql.resolver_map, schema: default }

Shopsys\FrontendApiBundle\Controller\FrontendApiController:
tags: ['controller.service_arguments']
Lcobucci\JWT\Configuration:
factory: ['@Shopsys\FrontendApiBundle\Model\Token\JwtConfigurationFactory', create]

Shopsys\FrontendApiBundle\Component\Domain\EnabledOnDomainChecker:
arguments:
$enabledDomainIds: '%shopsys.frontend_api.domains%'

Shopsys\FrontendApiBundle\Model\Error\ErrorHandlerListener:
tags:
- { name: kernel.event_listener, event: kernel.exception, method: onKernelException, priority: 20}

Shopsys\FrontendApiBundle\Model\Mutation\Login\LoginMutation:
arguments:
$loginRateLimiter: '@security.login_throttling.frontend_api.limiter'

Shopsys\FrontendApiBundle\Model\Token\TokenAuthenticator: ~
Shopsys\FrontendApiBundle\Component\ExpressionLanguage\DynamicPaginationComplexityExpressionFunction:
tags: [ 'overblog_graphql.expression_function' ]

Shopsys\FrontendApiBundle\Model\User\FrontendApiUserProvider: ~
Shopsys\FrontendApiBundle\Component\GqlContext\GqlContextInitializer: ~

Shopsys\FrontendApiBundle\Model\User\FrontendApiUserFactory: ~
Shopsys\FrontendApiBundle\Controller\FrontendApiController:
tags: ['controller.service_arguments']

Shopsys\FrontendApiBundle\Model\User\FrontendApiUserFactoryInterface:
alias: Shopsys\FrontendApiBundle\Model\User\FrontendApiUserFactory
Shopsys\FrontendApiBundle\Model\Error\ErrorHandlerListener:
tags:
- { name: kernel.event_listener, event: kernel.exception, method: onKernelException, priority: 20}

Shopsys\FrontendApiBundle\Model\GraphqlConfigurator: ~

Shopsys\FrontendApiBundle\Model\Product\Filter\ProductFilterNormalizer: ~

Lcobucci\JWT\Configuration:
factory: ['@Shopsys\FrontendApiBundle\Model\Token\JwtConfigurationFactory', create]

Shopsys\FrontendApiBundle\Model\Logger\FrontendApiLogger:
arguments:
$logger: '@monolog.logger'
$isValidationLoggedAsError: '%shopsys.frontend_api.validation_logged_as_error%'

Shopsys\FrontendApiBundle\Component\ExpressionLanguage\DynamicPaginationComplexityExpressionFunction:
tags: [ 'overblog_graphql.expression_function' ]
Shopsys\FrontendApiBundle\Model\Mutation\Login\LoginMutation:
arguments:
$loginRateLimiter: '@security.login_throttling.frontend_api.limiter'

Shopsys\FrontendApiBundle\Model\Resolver\Products\Search\ProductSearchResultsProviderResolver:
Shopsys\FrontendApiBundle\Model\Product\Filter\ProductFilterNormalizer: ~

Shopsys\FrontendApiBundle\Model\Resolver\Article\Search\ArticlesSearchResultsProvider:
tags:
- { name: 'shopsys.frontend_api.articles_search_results_provider', priority: 1 }

Shopsys\FrontendApiBundle\Model\Resolver\Article\Search\ArticlesSearchResultsProviderResolver:
arguments:
$productSearchResultsProviders: !tagged 'shopsys.frontend_api.products_search_results_provider'
$articlesSearchResultsProviders: !tagged 'shopsys.frontend_api.articles_search_results_provider'

Shopsys\FrontendApiBundle\Model\Resolver\Products\Search\ProductSearchResultsProvider:
Shopsys\FrontendApiBundle\Model\Resolver\Brand\Search\BrandSearchResultsProvider:
tags:
- { name: 'shopsys.frontend_api.products_search_results_provider', priority: 1 }
- { name: 'shopsys.frontend_api.brands_search_results_provider', priority: 1 }

Shopsys\FrontendApiBundle\Model\Resolver\Category\Search\CategoriesSearchResultsProviderResolver:
Shopsys\FrontendApiBundle\Model\Resolver\Brand\Search\BrandSearchResultsProviderResolver:
arguments:
$categoriesSearchResultsProviders: !tagged 'shopsys.frontend_api.categories_search_results_provider'
$brandSearchResultsProviders: !tagged 'shopsys.frontend_api.brands_search_results_provider'

Shopsys\FrontendApiBundle\Model\Resolver\Category\Search\CategoriesSearchResultsProvider:
tags:
- { name: 'shopsys.frontend_api.categories_search_results_provider', priority: 1 }

Shopsys\FrontendApiBundle\Model\Resolver\Article\Search\ArticlesSearchResultsProviderResolver:
Shopsys\FrontendApiBundle\Model\Resolver\Category\Search\CategoriesSearchResultsProviderResolver:
arguments:
$articlesSearchResultsProviders: !tagged 'shopsys.frontend_api.articles_search_results_provider'
$categoriesSearchResultsProviders: !tagged 'shopsys.frontend_api.categories_search_results_provider'

Shopsys\FrontendApiBundle\Model\Resolver\Article\Search\ArticlesSearchResultsProvider:
Shopsys\FrontendApiBundle\Model\Resolver\Products\Search\ProductSearchResultsProvider:
tags:
- { name: 'shopsys.frontend_api.articles_search_results_provider', priority: 1 }
- { name: 'shopsys.frontend_api.products_search_results_provider', priority: 1 }

Shopsys\FrontendApiBundle\Model\Resolver\Brand\Search\BrandSearchResultsProviderResolver:
Shopsys\FrontendApiBundle\Model\Resolver\Products\Search\ProductSearchResultsProviderResolver:
arguments:
$brandSearchResultsProviders: !tagged 'shopsys.frontend_api.brands_search_results_provider'
$productSearchResultsProviders: !tagged 'shopsys.frontend_api.products_search_results_provider'

Shopsys\FrontendApiBundle\Model\Resolver\Brand\Search\BrandSearchResultsProvider:
tags:
- { name: 'shopsys.frontend_api.brands_search_results_provider', priority: 1 }
Shopsys\FrontendApiBundle\Model\Token\TokenAuthenticator: ~

Shopsys\FrontendApiBundle\Component\GqlContext\GqlContextInitializer: ~
Shopsys\FrontendApiBundle\Model\User\FrontendApiUserFactory: ~

Shopsys\FrontendApiBundle\Model\User\FrontendApiUserFactoryInterface:
alias: Shopsys\FrontendApiBundle\Model\User\FrontendApiUserFactory

Shopsys\FrontendApiBundle\Model\User\FrontendApiUserProvider: ~
2 changes: 1 addition & 1 deletion src/Resources/config/services_test.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
_defaults:
autowire: true
autoconfigure: true
autowire: true
public: true

Shopsys\FrontendApiBundle\Component\Domain\EnabledOnDomainChecker:
Expand Down

0 comments on commit 8878bad

Please sign in to comment.