diff --git a/src/Resources/config/api_resources/Order.xml b/src/Resources/config/api_resources/Order.xml index 47cbbefa..19e51d73 100644 --- a/src/Resources/config/api_resources/Order.xml +++ b/src/Resources/config/api_resources/Order.xml @@ -34,7 +34,10 @@ shop:order:create - Pickups a new cart. Provided locale code has to be one of available for a particular channel. + Pickups a new cart. Provided locale code has to be one of available for a + particular channel. + + @@ -137,7 +140,9 @@ shop:cart:read - Addresses cart to given location, logged in Customer does not have to provide an email + Addresses cart to given location, logged in Customer does not have to + provide an email + @@ -414,33 +419,33 @@ - - - - - + + + + + - + - + - - - - - + + + + + - + - - + + - + - - - + + + diff --git a/src/Resources/config/api_resources/Product.xml b/src/Resources/config/api_resources/Product.xml index 854c50ed..74bfe012 100644 --- a/src/Resources/config/api_resources/Product.xml +++ b/src/Resources/config/api_resources/Product.xml @@ -99,10 +99,10 @@ - - - - + + + + object @@ -115,17 +115,17 @@ - - - - - - + + + + + + - + - + - + diff --git a/src/Resources/config/api_resources/ProductBundle.xml b/src/Resources/config/api_resources/ProductBundle.xml index 09ca5316..f77884b8 100644 --- a/src/Resources/config/api_resources/ProductBundle.xml +++ b/src/Resources/config/api_resources/ProductBundle.xml @@ -67,7 +67,8 @@ /shop/product-bundles/{id}/add-to-cart 200 input - BitBag\SyliusProductBundlePlugin\Command\AddProductBundleToCartCommand + BitBag\SyliusProductBundlePlugin\Command\AddProductBundleToCartCommand + false diff --git a/src/Resources/config/config.yml b/src/Resources/config/config.yml index bc83332f..11f741f3 100644 --- a/src/Resources/config/config.yml +++ b/src/Resources/config/config.yml @@ -1,9 +1,9 @@ imports: - - { resource: resources.yml } - - { resource: grids.yml } - - { resource: services.xml } + - { resource: resources.yml } + - { resource: grids.yml } + - { resource: services.xml } framework: - messenger: - buses: - bitbag_sylius_product_bundle.command_bus: ~ + messenger: + buses: + bitbag_sylius_product_bundle.command_bus: ~ diff --git a/src/Resources/config/resources.yml b/src/Resources/config/resources.yml index 564c562c..f9720b2f 100644 --- a/src/Resources/config/resources.yml +++ b/src/Resources/config/resources.yml @@ -1,4 +1,4 @@ imports: - - { resource: resources/product_bundle.yml } - - { resource: resources/product_bundle_item.yml } - - { resource: resources/product_bundle_order_item.yml } + - { resource: resources/product_bundle.yml } + - { resource: resources/product_bundle_item.yml } + - { resource: resources/product_bundle_order_item.yml } diff --git a/src/Resources/config/resources/product_bundle.yml b/src/Resources/config/resources/product_bundle.yml index d426be8c..603e2023 100644 --- a/src/Resources/config/resources/product_bundle.yml +++ b/src/Resources/config/resources/product_bundle.yml @@ -1,9 +1,9 @@ sylius_resource: - resources: - bitbag_sylius_product_bundle.product_bundle: - driver: doctrine/orm - classes: - model: BitBag\SyliusProductBundlePlugin\Entity\ProductBundle - interface: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleInterface - form: BitBag\SyliusProductBundlePlugin\Form\Type\ProductBundleType - repository: BitBag\SyliusProductBundlePlugin\Repository\ProductBundleRepository + resources: + bitbag_sylius_product_bundle.product_bundle: + driver: doctrine/orm + classes: + model: BitBag\SyliusProductBundlePlugin\Entity\ProductBundle + interface: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleInterface + form: BitBag\SyliusProductBundlePlugin\Form\Type\ProductBundleType + repository: BitBag\SyliusProductBundlePlugin\Repository\ProductBundleRepository diff --git a/src/Resources/config/resources/product_bundle_item.yml b/src/Resources/config/resources/product_bundle_item.yml index da9bd09e..40ddaa70 100644 --- a/src/Resources/config/resources/product_bundle_item.yml +++ b/src/Resources/config/resources/product_bundle_item.yml @@ -1,8 +1,8 @@ sylius_resource: - resources: - bitbag_sylius_product_bundle.product_bundle_item: - driver: doctrine/orm - classes: - model: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleItem - interface: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleItemInterface - form: BitBag\SyliusProductBundlePlugin\Form\Type\ProductBundleItemType + resources: + bitbag_sylius_product_bundle.product_bundle_item: + driver: doctrine/orm + classes: + model: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleItem + interface: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleItemInterface + form: BitBag\SyliusProductBundlePlugin\Form\Type\ProductBundleItemType diff --git a/src/Resources/config/resources/product_bundle_order_item.yml b/src/Resources/config/resources/product_bundle_order_item.yml index c11d81dd..4b7c9867 100644 --- a/src/Resources/config/resources/product_bundle_order_item.yml +++ b/src/Resources/config/resources/product_bundle_order_item.yml @@ -1,7 +1,7 @@ sylius_resource: - resources: - bitbag_sylius_product_bundle.product_bundle_order_item: - driver: doctrine/orm - classes: - model: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItem - interface: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItemInterface + resources: + bitbag_sylius_product_bundle.product_bundle_order_item: + driver: doctrine/orm + classes: + model: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItem + interface: BitBag\SyliusProductBundlePlugin\Entity\ProductBundleOrderItemInterface diff --git a/src/Resources/config/routing.yml b/src/Resources/config/routing.yml index 1a87e161..e35d5a36 100644 --- a/src/Resources/config/routing.yml +++ b/src/Resources/config/routing.yml @@ -1,7 +1,7 @@ bitbag_sylius_product_bundle_admin: - resource: routing/admin.yml - prefix: /admin + resource: routing/admin.yml + prefix: /admin bitbag_sylius_product_bundle_shop: - resource: routing/shop.yml - prefix: /{_locale} + resource: routing/shop.yml + prefix: /{_locale} diff --git a/src/Resources/config/routing/admin.yml b/src/Resources/config/routing/admin.yml index a8681f25..547111be 100644 --- a/src/Resources/config/routing/admin.yml +++ b/src/Resources/config/routing/admin.yml @@ -1,51 +1,51 @@ bitbag_product_bundle_admin_product_create_bundle: - path: /products/new/bundle - methods: [GET, POST] - defaults: - _controller: sylius.controller.product::createAction - _sylius: - section: admin - permission: true - factory: - method: createWithVariantAndBundle - template: "@SyliusAdmin/Crud/create.html.twig" - redirect: sylius_admin_product_update - form: - options: - validation_groups: - - sylius - - bitbag_sylius_product_bundle - vars: - subheader: sylius.ui.manage_your_product_catalog - templates: - form: "@SyliusAdmin/Product/_form.html.twig" - route: - name: bitbag_product_bundle_admin_product_create_bundle + path: /products/new/bundle + methods: [ GET, POST ] + defaults: + _controller: sylius.controller.product::createAction + _sylius: + section: admin + permission: true + factory: + method: createWithVariantAndBundle + template: "@SyliusAdmin/Crud/create.html.twig" + redirect: sylius_admin_product_update + form: + options: + validation_groups: + - sylius + - bitbag_sylius_product_bundle + vars: + subheader: sylius.ui.manage_your_product_catalog + templates: + form: "@SyliusAdmin/Product/_form.html.twig" + route: + name: bitbag_product_bundle_admin_product_create_bundle bitbag_product_bundle_admin_ajax_product_variants_by_phrase: - path: /ajax/product-variants/search-by-phrase - methods: [GET] - defaults: - _controller: sylius.controller.product_variant::indexAction - _format: json - _sylius: - serialization_groups: [Autocomplete] - permission: true - repository: - method: findByPhrase - arguments: - phrase: $phrase - locale: expr:service('sylius.context.locale').getLocaleCode() + path: /ajax/product-variants/search-by-phrase + methods: [ GET ] + defaults: + _controller: sylius.controller.product_variant::indexAction + _format: json + _sylius: + serialization_groups: [ Autocomplete ] + permission: true + repository: + method: findByPhrase + arguments: + phrase: $phrase + locale: expr:service('sylius.context.locale').getLocaleCode() bitbag_product_bundle_admin_ajax_product_variants_by_codes: - path: /ajax/product-variants/by-codes - methods: [GET] - defaults: - _controller: sylius.controller.product_variant::indexAction - _format: json - _sylius: - serialization_groups: [Autocomplete] - permission: true - repository: - method: findByCodes - arguments: [$code] + path: /ajax/product-variants/by-codes + methods: [ GET ] + defaults: + _controller: sylius.controller.product_variant::indexAction + _format: json + _sylius: + serialization_groups: [ Autocomplete ] + permission: true + repository: + method: findByCodes + arguments: [ $code ] diff --git a/src/Resources/config/routing/shop.yml b/src/Resources/config/routing/shop.yml index d8d693f4..8d5f3e4b 100644 --- a/src/Resources/config/routing/shop.yml +++ b/src/Resources/config/routing/shop.yml @@ -1,36 +1,36 @@ bitbag_sylius_product_bundle_shop_ajax_cart_add_product_bundle: - path: /ajax/cart/product-bundle/add - methods: [POST] - defaults: - _controller: bitbag_sylius_product_bundle.controller.order_item::addProductBundleAction - _format: json - _sylius: - factory: - method: createForProduct - arguments: [expr:notFoundOnNull(service('sylius.repository.product').find($productId))] - form: - type: BitBag\SyliusProductBundlePlugin\Form\Type\AddProductBundleToCartType - options: - product: expr:notFoundOnNull(service('sylius.repository.product').find($productId)) - redirect: - route: sylius_shop_cart_summary - parameters: {} - flash: sylius.cart.add_item + path: /ajax/cart/product-bundle/add + methods: [ POST ] + defaults: + _controller: bitbag_sylius_product_bundle.controller.order_item::addProductBundleAction + _format: json + _sylius: + factory: + method: createForProduct + arguments: [ expr:notFoundOnNull(service('sylius.repository.product').find($productId)) ] + form: + type: BitBag\SyliusProductBundlePlugin\Form\Type\AddProductBundleToCartType + options: + product: expr:notFoundOnNull(service('sylius.repository.product').find($productId)) + redirect: + route: sylius_shop_cart_summary + parameters: { } + flash: sylius.cart.add_item bitbag_sylius_product_bundle_shop_partial_cart_add_product_bundle: - path: /_partial/cart/product-bundle/add - methods: [GET] - defaults: - _controller: bitbag_sylius_product_bundle.controller.order_item::addProductBundleAction - _sylius: - template: $template - factory: - method: createForProduct - arguments: [expr:notFoundOnNull(service('sylius.repository.product').find($productId))] - form: - type: BitBag\SyliusProductBundlePlugin\Form\Type\AddProductBundleToCartType - options: - product: expr:notFoundOnNull(service('sylius.repository.product').find($productId)) - redirect: - route: sylius_shop_cart_summary - parameters: {} + path: /_partial/cart/product-bundle/add + methods: [ GET ] + defaults: + _controller: bitbag_sylius_product_bundle.controller.order_item::addProductBundleAction + _sylius: + template: $template + factory: + method: createForProduct + arguments: [ expr:notFoundOnNull(service('sylius.repository.product').find($productId)) ] + form: + type: BitBag\SyliusProductBundlePlugin\Form\Type\AddProductBundleToCartType + options: + product: expr:notFoundOnNull(service('sylius.repository.product').find($productId)) + redirect: + route: sylius_shop_cart_summary + parameters: { } diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml index 145bb073..a968c028 100644 --- a/src/Resources/config/services.xml +++ b/src/Resources/config/services.xml @@ -1,6 +1,7 @@ - + diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml index c51fcb10..ec85cc4f 100644 --- a/src/Resources/config/services/controller.xml +++ b/src/Resources/config/services/controller.xml @@ -1,12 +1,15 @@ - + - + - - - + + + diff --git a/src/Resources/config/services/event_listener.xml b/src/Resources/config/services/event_listener.xml index 797d027c..95a149f8 100644 --- a/src/Resources/config/services/event_listener.xml +++ b/src/Resources/config/services/event_listener.xml @@ -2,9 +2,11 @@ - - - + + + diff --git a/src/Resources/config/services/factory.xml b/src/Resources/config/services/factory.xml index 26e912a5..0eff5d4e 100644 --- a/src/Resources/config/services/factory.xml +++ b/src/Resources/config/services/factory.xml @@ -1,17 +1,20 @@ - + - - - + + + - + - + - + diff --git a/src/Resources/config/services/form.xml b/src/Resources/config/services/form.xml index b64a68d5..06e50700 100644 --- a/src/Resources/config/services/form.xml +++ b/src/Resources/config/services/form.xml @@ -1,6 +1,7 @@ - + bitbag_sylius_product_bundle @@ -12,20 +13,23 @@ - + %bitbag_sylius_product_bundle.model.product_bundle.class% %bitbag_sylius_product_bundle.form.type.product_bundle.validation_groups% - + - + %bitbag_sylius_product_bundle.model.product_bundle_item.class% %bitbag_sylius_product_bundle.form.type.product_bundle_item.validation_groups% - + - - + + diff --git a/src/Resources/config/services/handler.xml b/src/Resources/config/services/handler.xml index 66cfaf68..bbcc3f66 100644 --- a/src/Resources/config/services/handler.xml +++ b/src/Resources/config/services/handler.xml @@ -1,11 +1,13 @@ - + - - - - + + + + diff --git a/src/Resources/config/services/menu.xml b/src/Resources/config/services/menu.xml index 11233699..a95e9905 100644 --- a/src/Resources/config/services/menu.xml +++ b/src/Resources/config/services/menu.xml @@ -1,9 +1,11 @@ - + - - + + diff --git a/src/Resources/config/services/processor.xml b/src/Resources/config/services/processor.xml index dec8a8cf..ac9c1ead 100644 --- a/src/Resources/config/services/processor.xml +++ b/src/Resources/config/services/processor.xml @@ -1,15 +1,16 @@ - + - - - - + + + + diff --git a/src/Resources/config/services/transformer.xml b/src/Resources/config/services/transformer.xml index 1cacdd6a..4f212350 100644 --- a/src/Resources/config/services/transformer.xml +++ b/src/Resources/config/services/transformer.xml @@ -1,12 +1,13 @@ - + - + diff --git a/src/Resources/config/services/validator.xml b/src/Resources/config/services/validator.xml index 9994250d..89bd7a66 100644 --- a/src/Resources/config/services/validator.xml +++ b/src/Resources/config/services/validator.xml @@ -1,32 +1,38 @@ - + - - - + + + - - + + - + - - + + - + - - + + diff --git a/src/Resources/config/validation/AddProductBundleToCartDto.xml b/src/Resources/config/validation/AddProductBundleToCartDto.xml index 73877de2..293524f1 100644 --- a/src/Resources/config/validation/AddProductBundleToCartDto.xml +++ b/src/Resources/config/validation/AddProductBundleToCartDto.xml @@ -12,6 +12,6 @@ https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd"> - + diff --git a/src/Resources/config/validation/ProductBundleItem.xml b/src/Resources/config/validation/ProductBundleItem.xml index 1feafead..29bc8451 100644 --- a/src/Resources/config/validation/ProductBundleItem.xml +++ b/src/Resources/config/validation/ProductBundleItem.xml @@ -14,7 +14,8 @@ - + diff --git a/tests/Application/config/packages/_sylius.yaml b/tests/Application/config/packages/_sylius.yaml index 0c0e3df8..e39d353e 100644 --- a/tests/Application/config/packages/_sylius.yaml +++ b/tests/Application/config/packages/_sylius.yaml @@ -1,30 +1,30 @@ imports: - - { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" } + - { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" } - - { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" } + - { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" } - - { resource: "@SyliusShopBundle/Resources/config/app/config.yml" } + - { resource: "@SyliusShopBundle/Resources/config/app/config.yml" } - - { resource: "@SyliusApiBundle/Resources/config/app/config.yaml" } + - { resource: "@SyliusApiBundle/Resources/config/app/config.yaml" } sylius_api: - enabled: true + enabled: true parameters: - sylius_core.public_dir: '%kernel.project_dir%/public' + sylius_core.public_dir: '%kernel.project_dir%/public' sylius_product: - resources: - product: - classes: - model: Tests\BitBag\SyliusProductBundlePlugin\Entity\Product + resources: + product: + classes: + model: Tests\BitBag\SyliusProductBundlePlugin\Entity\Product sylius_order: - resources: - order_item: - classes: - model: Tests\BitBag\SyliusProductBundlePlugin\Entity\OrderItem + resources: + order_item: + classes: + model: Tests\BitBag\SyliusProductBundlePlugin\Entity\OrderItem sylius_shop: - product_grid: - include_all_descendants: true + product_grid: + include_all_descendants: true diff --git a/tests/Application/config/packages/dev/framework.yaml b/tests/Application/config/packages/dev/framework.yaml index 4b116def..1e2ebc1f 100644 --- a/tests/Application/config/packages/dev/framework.yaml +++ b/tests/Application/config/packages/dev/framework.yaml @@ -1,2 +1,2 @@ framework: - profiler: { only_exceptions: false } + profiler: { only_exceptions: false } diff --git a/tests/Application/config/packages/dev/monolog.yaml b/tests/Application/config/packages/dev/monolog.yaml index da2b092d..a8ae3c7d 100644 --- a/tests/Application/config/packages/dev/monolog.yaml +++ b/tests/Application/config/packages/dev/monolog.yaml @@ -1,9 +1,9 @@ monolog: - handlers: - main: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug - firephp: - type: firephp - level: info + handlers: + main: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug + firephp: + type: firephp + level: info diff --git a/tests/Application/config/packages/dev/routing.yaml b/tests/Application/config/packages/dev/routing.yaml index 4116679a..a3d2503d 100644 --- a/tests/Application/config/packages/dev/routing.yaml +++ b/tests/Application/config/packages/dev/routing.yaml @@ -1,3 +1,3 @@ framework: - router: - strict_requirements: true + router: + strict_requirements: true diff --git a/tests/Application/config/packages/dev/web_profiler.yaml b/tests/Application/config/packages/dev/web_profiler.yaml index 1f1cb2bb..be5064e3 100644 --- a/tests/Application/config/packages/dev/web_profiler.yaml +++ b/tests/Application/config/packages/dev/web_profiler.yaml @@ -1,3 +1,3 @@ web_profiler: - toolbar: true - intercept_redirects: false + toolbar: true + intercept_redirects: false diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml index b4126767..c74b2072 100644 --- a/tests/Application/config/packages/doctrine.yaml +++ b/tests/Application/config/packages/doctrine.yaml @@ -1,25 +1,25 @@ parameters: - # Adds a fallback DATABASE_URL if the env var is not set. - # This allows you to run cache:warmup even if your - # environment variables are not available yet. - # You should not need to change this value. - env(DATABASE_URL): '' + # Adds a fallback DATABASE_URL if the env var is not set. + # This allows you to run cache:warmup even if your + # environment variables are not available yet. + # You should not need to change this value. + env(DATABASE_URL): '' doctrine: - dbal: - driver: 'pdo_mysql' - server_version: '5.7' - charset: UTF8 + dbal: + driver: 'pdo_mysql' + server_version: '5.7' + charset: UTF8 - url: '%env(resolve:DATABASE_URL)%' + url: '%env(resolve:DATABASE_URL)%' - orm: - auto_generate_proxy_classes: '%kernel.debug%' - naming_strategy: doctrine.orm.naming_strategy.underscore - auto_mapping: true - mappings: - App: - is_bundle: false - type: xml - dir: '%kernel.project_dir%/src/Resources/config/doctrine' - prefix: 'Tests\BitBag\SyliusProductBundlePlugin\Entity' + orm: + auto_generate_proxy_classes: '%kernel.debug%' + naming_strategy: doctrine.orm.naming_strategy.underscore + auto_mapping: true + mappings: + App: + is_bundle: false + type: xml + dir: '%kernel.project_dir%/src/Resources/config/doctrine' + prefix: 'Tests\BitBag\SyliusProductBundlePlugin\Entity' diff --git a/tests/Application/config/packages/doctrine_migrations.yaml b/tests/Application/config/packages/doctrine_migrations.yaml index cdbc01ae..2b3bacda 100644 --- a/tests/Application/config/packages/doctrine_migrations.yaml +++ b/tests/Application/config/packages/doctrine_migrations.yaml @@ -1,4 +1,4 @@ doctrine_migrations: - storage: - table_storage: - table_name: sylius_migrations + storage: + table_storage: + table_name: sylius_migrations diff --git a/tests/Application/config/packages/fos_rest.yaml b/tests/Application/config/packages/fos_rest.yaml index a72eef7c..6e54cbdc 100644 --- a/tests/Application/config/packages/fos_rest.yaml +++ b/tests/Application/config/packages/fos_rest.yaml @@ -1,11 +1,11 @@ fos_rest: - exception: true - view: - formats: - json: true - xml: true - empty_content: 204 - format_listener: - rules: - - { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true } - - { path: '^/', stop: true } + exception: true + view: + formats: + json: true + xml: true + empty_content: 204 + format_listener: + rules: + - { path: '^/api/.*', priorities: [ 'json', 'xml' ], fallback_format: json, prefer_extension: true } + - { path: '^/', stop: true } diff --git a/tests/Application/config/packages/framework.yaml b/tests/Application/config/packages/framework.yaml index 9b445011..22e9f619 100644 --- a/tests/Application/config/packages/framework.yaml +++ b/tests/Application/config/packages/framework.yaml @@ -1,6 +1,6 @@ framework: - secret: '%env(APP_SECRET)%' - form: true - csrf_protection: true - session: - handler_id: ~ + secret: '%env(APP_SECRET)%' + form: true + csrf_protection: true + session: + handler_id: ~ diff --git a/tests/Application/config/packages/lexik_jwt_authentication.yaml b/tests/Application/config/packages/lexik_jwt_authentication.yaml index edfb69dc..20f1cb0c 100644 --- a/tests/Application/config/packages/lexik_jwt_authentication.yaml +++ b/tests/Application/config/packages/lexik_jwt_authentication.yaml @@ -1,4 +1,4 @@ lexik_jwt_authentication: - secret_key: '%env(resolve:JWT_SECRET_KEY)%' - public_key: '%env(resolve:JWT_PUBLIC_KEY)%' - pass_phrase: '%env(JWT_PASSPHRASE)%' + secret_key: '%env(resolve:JWT_SECRET_KEY)%' + public_key: '%env(resolve:JWT_PUBLIC_KEY)%' + pass_phrase: '%env(JWT_PASSPHRASE)%' diff --git a/tests/Application/config/packages/liip_imagine.yaml b/tests/Application/config/packages/liip_imagine.yaml index bb2e7ceb..28b2e2cf 100644 --- a/tests/Application/config/packages/liip_imagine.yaml +++ b/tests/Application/config/packages/liip_imagine.yaml @@ -1,6 +1,6 @@ liip_imagine: - resolvers: - default: - web_path: - web_root: "%kernel.project_dir%/public" - cache_prefix: "media/cache" + resolvers: + default: + web_path: + web_root: "%kernel.project_dir%/public" + cache_prefix: "media/cache" diff --git a/tests/Application/config/packages/prod/doctrine.yaml b/tests/Application/config/packages/prod/doctrine.yaml index 2f16f0fd..a0f45e57 100644 --- a/tests/Application/config/packages/prod/doctrine.yaml +++ b/tests/Application/config/packages/prod/doctrine.yaml @@ -1,31 +1,31 @@ doctrine: - orm: - metadata_cache_driver: - type: service - id: doctrine.system_cache_provider - query_cache_driver: - type: service - id: doctrine.system_cache_provider - result_cache_driver: - type: service - id: doctrine.result_cache_provider + orm: + metadata_cache_driver: + type: service + id: doctrine.system_cache_provider + query_cache_driver: + type: service + id: doctrine.system_cache_provider + result_cache_driver: + type: service + id: doctrine.result_cache_provider services: - doctrine.result_cache_provider: - class: Symfony\Component\Cache\DoctrineProvider - public: false - arguments: - - '@doctrine.result_cache_pool' - doctrine.system_cache_provider: - class: Symfony\Component\Cache\DoctrineProvider - public: false - arguments: - - '@doctrine.system_cache_pool' + doctrine.result_cache_provider: + class: Symfony\Component\Cache\DoctrineProvider + public: false + arguments: + - '@doctrine.result_cache_pool' + doctrine.system_cache_provider: + class: Symfony\Component\Cache\DoctrineProvider + public: false + arguments: + - '@doctrine.system_cache_pool' framework: - cache: - pools: - doctrine.result_cache_pool: - adapter: cache.app - doctrine.system_cache_pool: - adapter: cache.system + cache: + pools: + doctrine.result_cache_pool: + adapter: cache.app + doctrine.system_cache_pool: + adapter: cache.system diff --git a/tests/Application/config/packages/prod/monolog.yaml b/tests/Application/config/packages/prod/monolog.yaml index 64612114..f17d1996 100644 --- a/tests/Application/config/packages/prod/monolog.yaml +++ b/tests/Application/config/packages/prod/monolog.yaml @@ -1,10 +1,10 @@ monolog: - handlers: - main: - type: fingers_crossed - action_level: error - handler: nested - nested: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug + handlers: + main: + type: fingers_crossed + action_level: error + handler: nested + nested: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug diff --git a/tests/Application/config/packages/routing.yaml b/tests/Application/config/packages/routing.yaml index 368bc7f4..17ae5482 100644 --- a/tests/Application/config/packages/routing.yaml +++ b/tests/Application/config/packages/routing.yaml @@ -1,3 +1,3 @@ framework: - router: - strict_requirements: ~ + router: + strict_requirements: ~ diff --git a/tests/Application/config/packages/staging/monolog.yaml b/tests/Application/config/packages/staging/monolog.yaml index 64612114..f17d1996 100644 --- a/tests/Application/config/packages/staging/monolog.yaml +++ b/tests/Application/config/packages/staging/monolog.yaml @@ -1,10 +1,10 @@ monolog: - handlers: - main: - type: fingers_crossed - action_level: error - handler: nested - nested: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug + handlers: + main: + type: fingers_crossed + action_level: error + handler: nested + nested: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug diff --git a/tests/Application/config/packages/stof_doctrine_extensions.yaml b/tests/Application/config/packages/stof_doctrine_extensions.yaml index 7770f74e..b2e32470 100644 --- a/tests/Application/config/packages/stof_doctrine_extensions.yaml +++ b/tests/Application/config/packages/stof_doctrine_extensions.yaml @@ -1,4 +1,4 @@ # Read the documentation: https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html # See the official DoctrineExtensions documentation for more details: https://github.com/Atlantic18/DoctrineExtensions/tree/master/doc/ stof_doctrine_extensions: - default_locale: '%locale%' + default_locale: '%locale%' diff --git a/tests/Application/config/packages/test/framework.yaml b/tests/Application/config/packages/test/framework.yaml index daf04d4e..2734c0ca 100644 --- a/tests/Application/config/packages/test/framework.yaml +++ b/tests/Application/config/packages/test/framework.yaml @@ -1,4 +1,4 @@ framework: - test: ~ - session: - handler_id: ~ + test: ~ + session: + handler_id: ~ diff --git a/tests/Application/config/packages/test/monolog.yaml b/tests/Application/config/packages/test/monolog.yaml index 7e2b9e3a..d5cefe75 100644 --- a/tests/Application/config/packages/test/monolog.yaml +++ b/tests/Application/config/packages/test/monolog.yaml @@ -1,6 +1,6 @@ monolog: - handlers: - main: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: error + handlers: + main: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: error diff --git a/tests/Application/config/packages/test/sylius_theme.yaml b/tests/Application/config/packages/test/sylius_theme.yaml index 4d34199f..3cc3d971 100644 --- a/tests/Application/config/packages/test/sylius_theme.yaml +++ b/tests/Application/config/packages/test/sylius_theme.yaml @@ -1,3 +1,3 @@ sylius_theme: - sources: - test: ~ + sources: + test: ~ diff --git a/tests/Application/config/packages/test/sylius_uploader.yaml b/tests/Application/config/packages/test/sylius_uploader.yaml index ab9d6ca0..cfc5d05b 100644 --- a/tests/Application/config/packages/test/sylius_uploader.yaml +++ b/tests/Application/config/packages/test/sylius_uploader.yaml @@ -1,3 +1,3 @@ services: - Sylius\Component\Core\Generator\ImagePathGeneratorInterface: - class: Sylius\Behat\Service\Generator\UploadedImagePathGenerator + Sylius\Component\Core\Generator\ImagePathGeneratorInterface: + class: Sylius\Behat\Service\Generator\UploadedImagePathGenerator diff --git a/tests/Application/config/packages/test/web_profiler.yaml b/tests/Application/config/packages/test/web_profiler.yaml index 03752de2..808c4cf9 100644 --- a/tests/Application/config/packages/test/web_profiler.yaml +++ b/tests/Application/config/packages/test/web_profiler.yaml @@ -1,6 +1,6 @@ web_profiler: - toolbar: false - intercept_redirects: false + toolbar: false + intercept_redirects: false framework: - profiler: { collect: false } + profiler: { collect: false } diff --git a/tests/Application/config/packages/test_cached/doctrine.yaml b/tests/Application/config/packages/test_cached/doctrine.yaml index 49528606..316da829 100644 --- a/tests/Application/config/packages/test_cached/doctrine.yaml +++ b/tests/Application/config/packages/test_cached/doctrine.yaml @@ -1,16 +1,16 @@ doctrine: - orm: - entity_managers: - default: - result_cache_driver: - type: memcached - host: localhost - port: 11211 - query_cache_driver: - type: memcached - host: localhost - port: 11211 - metadata_cache_driver: - type: memcached - host: localhost - port: 11211 + orm: + entity_managers: + default: + result_cache_driver: + type: memcached + host: localhost + port: 11211 + query_cache_driver: + type: memcached + host: localhost + port: 11211 + metadata_cache_driver: + type: memcached + host: localhost + port: 11211 diff --git a/tests/Application/config/packages/test_cached/fos_rest.yaml b/tests/Application/config/packages/test_cached/fos_rest.yaml index 2b4189da..c36c93f9 100644 --- a/tests/Application/config/packages/test_cached/fos_rest.yaml +++ b/tests/Application/config/packages/test_cached/fos_rest.yaml @@ -1,3 +1,3 @@ fos_rest: - exception: - debug: true + exception: + debug: true diff --git a/tests/Application/config/packages/test_cached/framework.yaml b/tests/Application/config/packages/test_cached/framework.yaml index daf04d4e..2734c0ca 100644 --- a/tests/Application/config/packages/test_cached/framework.yaml +++ b/tests/Application/config/packages/test_cached/framework.yaml @@ -1,4 +1,4 @@ framework: - test: ~ - session: - handler_id: ~ + test: ~ + session: + handler_id: ~ diff --git a/tests/Application/config/packages/test_cached/monolog.yaml b/tests/Application/config/packages/test_cached/monolog.yaml index 7e2b9e3a..d5cefe75 100644 --- a/tests/Application/config/packages/test_cached/monolog.yaml +++ b/tests/Application/config/packages/test_cached/monolog.yaml @@ -1,6 +1,6 @@ monolog: - handlers: - main: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: error + handlers: + main: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: error diff --git a/tests/Application/config/packages/test_cached/sylius_channel.yaml b/tests/Application/config/packages/test_cached/sylius_channel.yaml index bab83ef2..88ff5989 100644 --- a/tests/Application/config/packages/test_cached/sylius_channel.yaml +++ b/tests/Application/config/packages/test_cached/sylius_channel.yaml @@ -1,2 +1,2 @@ sylius_channel: - debug: true + debug: true diff --git a/tests/Application/config/packages/test_cached/sylius_theme.yaml b/tests/Application/config/packages/test_cached/sylius_theme.yaml index 4d34199f..3cc3d971 100644 --- a/tests/Application/config/packages/test_cached/sylius_theme.yaml +++ b/tests/Application/config/packages/test_cached/sylius_theme.yaml @@ -1,3 +1,3 @@ sylius_theme: - sources: - test: ~ + sources: + test: ~ diff --git a/tests/Application/config/packages/test_cached/sylius_uploader.yaml b/tests/Application/config/packages/test_cached/sylius_uploader.yaml index cfa727e2..fcb02b15 100644 --- a/tests/Application/config/packages/test_cached/sylius_uploader.yaml +++ b/tests/Application/config/packages/test_cached/sylius_uploader.yaml @@ -1,2 +1,2 @@ imports: - - { resource: "../test/sylius_uploader.yaml" } + - { resource: "../test/sylius_uploader.yaml" } diff --git a/tests/Application/config/packages/test_cached/twig.yaml b/tests/Application/config/packages/test_cached/twig.yaml index 8c6e0b40..d82243ff 100644 --- a/tests/Application/config/packages/test_cached/twig.yaml +++ b/tests/Application/config/packages/test_cached/twig.yaml @@ -1,2 +1,2 @@ twig: - strict_variables: true + strict_variables: true diff --git a/tests/Application/config/packages/translation.yaml b/tests/Application/config/packages/translation.yaml index 1f4f9664..5b162856 100644 --- a/tests/Application/config/packages/translation.yaml +++ b/tests/Application/config/packages/translation.yaml @@ -1,8 +1,8 @@ framework: - default_locale: '%locale%' - translator: - paths: - - '%kernel.project_dir%/translations' - fallbacks: - - '%locale%' - - 'en' + default_locale: '%locale%' + translator: + paths: + - '%kernel.project_dir%/translations' + fallbacks: + - '%locale%' + - 'en' diff --git a/tests/Application/config/packages/twig.yaml b/tests/Application/config/packages/twig.yaml index 8545473d..0d575c1c 100644 --- a/tests/Application/config/packages/twig.yaml +++ b/tests/Application/config/packages/twig.yaml @@ -1,12 +1,12 @@ twig: - paths: ['%kernel.project_dir%/templates'] - debug: '%kernel.debug%' - strict_variables: '%kernel.debug%' + paths: [ '%kernel.project_dir%/templates' ] + debug: '%kernel.debug%' + strict_variables: '%kernel.debug%' services: - _defaults: - public: false - autowire: true - autoconfigure: true + _defaults: + public: false + autowire: true + autoconfigure: true - Twig\Extra\Intl\IntlExtension: ~ + Twig\Extra\Intl\IntlExtension: ~ diff --git a/tests/Application/config/packages/validator.yaml b/tests/Application/config/packages/validator.yaml index 61807db6..e6553b33 100644 --- a/tests/Application/config/packages/validator.yaml +++ b/tests/Application/config/packages/validator.yaml @@ -1,3 +1,3 @@ framework: - validation: - enable_annotations: true + validation: + enable_annotations: true diff --git a/tests/Application/config/routes.yaml b/tests/Application/config/routes.yaml index 7b7ee8bd..d3e703e0 100644 --- a/tests/Application/config/routes.yaml +++ b/tests/Application/config/routes.yaml @@ -1,2 +1,2 @@ bitbag_sylius_product_bundle_plugin: - resource: "@BitBagSyliusProductBundlePlugin/Resources/config/routing.yml" + resource: "@BitBagSyliusProductBundlePlugin/Resources/config/routing.yml" diff --git a/tests/Application/config/routes/dev/web_profiler.yaml b/tests/Application/config/routes/dev/web_profiler.yaml index 3e79dc21..f54957a8 100644 --- a/tests/Application/config/routes/dev/web_profiler.yaml +++ b/tests/Application/config/routes/dev/web_profiler.yaml @@ -1,7 +1,7 @@ _wdt: - resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" - prefix: /_wdt + resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" + prefix: /_wdt _profiler: - resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" - prefix: /_profiler + resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" + prefix: /_profiler diff --git a/tests/Application/config/routes/liip_imagine.yaml b/tests/Application/config/routes/liip_imagine.yaml index 201cbd5d..4e89a350 100644 --- a/tests/Application/config/routes/liip_imagine.yaml +++ b/tests/Application/config/routes/liip_imagine.yaml @@ -1,2 +1,2 @@ _liip_imagine: - resource: "@LiipImagineBundle/Resources/config/routing.yaml" + resource: "@LiipImagineBundle/Resources/config/routing.yaml" diff --git a/tests/Application/config/routes/sylius_admin.yaml b/tests/Application/config/routes/sylius_admin.yaml index 1ba48d6c..baa3afdc 100644 --- a/tests/Application/config/routes/sylius_admin.yaml +++ b/tests/Application/config/routes/sylius_admin.yaml @@ -1,3 +1,3 @@ sylius_admin: - resource: "@SyliusAdminBundle/Resources/config/routing.yml" - prefix: /admin + resource: "@SyliusAdminBundle/Resources/config/routing.yml" + prefix: /admin diff --git a/tests/Application/config/routes/sylius_api.yaml b/tests/Application/config/routes/sylius_api.yaml index ae01ffce..4ed7e8f3 100644 --- a/tests/Application/config/routes/sylius_api.yaml +++ b/tests/Application/config/routes/sylius_api.yaml @@ -1,3 +1,3 @@ sylius_api: - resource: "@SyliusApiBundle/Resources/config/routing.yml" - prefix: "%sylius.security.new_api_route%" + resource: "@SyliusApiBundle/Resources/config/routing.yml" + prefix: "%sylius.security.new_api_route%" diff --git a/tests/Application/config/routes/sylius_shop.yaml b/tests/Application/config/routes/sylius_shop.yaml index fae46cbf..38d83337 100644 --- a/tests/Application/config/routes/sylius_shop.yaml +++ b/tests/Application/config/routes/sylius_shop.yaml @@ -1,14 +1,14 @@ sylius_shop: - resource: "@SyliusShopBundle/Resources/config/routing.yml" - prefix: /{_locale} - requirements: - _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$ + resource: "@SyliusShopBundle/Resources/config/routing.yml" + prefix: /{_locale} + requirements: + _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$ sylius_shop_payum: - resource: "@SyliusShopBundle/Resources/config/routing/payum.yml" + resource: "@SyliusShopBundle/Resources/config/routing/payum.yml" sylius_shop_default_locale: - path: / - methods: [GET] - defaults: - _controller: sylius.controller.shop.locale_switch::switchAction + path: / + methods: [ GET ] + defaults: + _controller: sylius.controller.shop.locale_switch::switchAction diff --git a/tests/Application/config/routes/test/sylius_test_plugin.yaml b/tests/Application/config/routes/test/sylius_test_plugin.yaml index 0ca57d9a..138859f8 100644 --- a/tests/Application/config/routes/test/sylius_test_plugin.yaml +++ b/tests/Application/config/routes/test/sylius_test_plugin.yaml @@ -1,5 +1,5 @@ sylius_test_plugin_main: - path: /test/main - controller: FrameworkBundle:Template:template - defaults: - template: "@SyliusTestPlugin/main.html.twig" + path: /test/main + controller: FrameworkBundle:Template:template + defaults: + template: "@SyliusTestPlugin/main.html.twig" diff --git a/tests/Application/config/routes/test_cached/routing.yaml b/tests/Application/config/routes/test_cached/routing.yaml index 0ca57d9a..138859f8 100644 --- a/tests/Application/config/routes/test_cached/routing.yaml +++ b/tests/Application/config/routes/test_cached/routing.yaml @@ -1,5 +1,5 @@ sylius_test_plugin_main: - path: /test/main - controller: FrameworkBundle:Template:template - defaults: - template: "@SyliusTestPlugin/main.html.twig" + path: /test/main + controller: FrameworkBundle:Template:template + defaults: + template: "@SyliusTestPlugin/main.html.twig" diff --git a/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml b/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml index 0ca57d9a..138859f8 100644 --- a/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml +++ b/tests/Application/config/routes/test_cached/sylius_test_plugin.yaml @@ -1,5 +1,5 @@ sylius_test_plugin_main: - path: /test/main - controller: FrameworkBundle:Template:template - defaults: - template: "@SyliusTestPlugin/main.html.twig" + path: /test/main + controller: FrameworkBundle:Template:template + defaults: + template: "@SyliusTestPlugin/main.html.twig" diff --git a/tests/Application/config/services.yaml b/tests/Application/config/services.yaml index 615506eb..ee3b8248 100644 --- a/tests/Application/config/services.yaml +++ b/tests/Application/config/services.yaml @@ -1,4 +1,4 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration parameters: - locale: en_US + locale: en_US diff --git a/tests/Application/config/services_test.yaml b/tests/Application/config/services_test.yaml index 9edf553d..f90fe420 100644 --- a/tests/Application/config/services_test.yaml +++ b/tests/Application/config/services_test.yaml @@ -1,8 +1,8 @@ imports: - - { resource: "../../Behat/Resources/services.yml" } - - { resource: "../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" } + - { resource: "../../Behat/Resources/services.yml" } + - { resource: "../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" } # workaround needed for strange "test.client.history" problem # see https://github.com/FriendsOfBehat/SymfonyExtension/issues/88 services: - Symfony\Component\BrowserKit\AbstractBrowser: '@test.client' + Symfony\Component\BrowserKit\AbstractBrowser: '@test.client' diff --git a/tests/Application/config/services_test_cached.yaml b/tests/Application/config/services_test_cached.yaml index 0de380ea..5d2c7fa4 100644 --- a/tests/Application/config/services_test_cached.yaml +++ b/tests/Application/config/services_test_cached.yaml @@ -1,2 +1,2 @@ imports: - - { resource: "services_test.yaml" } + - { resource: "services_test.yaml" } diff --git a/tests/Application/config/sylius/1.12/packages/jms_serializer.yaml b/tests/Application/config/sylius/1.12/packages/jms_serializer.yaml index ed7bc613..fa43f5b6 100644 --- a/tests/Application/config/sylius/1.12/packages/jms_serializer.yaml +++ b/tests/Application/config/sylius/1.12/packages/jms_serializer.yaml @@ -1,4 +1,4 @@ jms_serializer: - visitors: - xml_serialization: - format_output: '%kernel.debug%' + visitors: + xml_serialization: + format_output: '%kernel.debug%' diff --git a/tests/Application/config/sylius/1.12/packages/security.yaml b/tests/Application/config/sylius/1.12/packages/security.yaml index 2b277f55..cb926ec4 100644 --- a/tests/Application/config/sylius/1.12/packages/security.yaml +++ b/tests/Application/config/sylius/1.12/packages/security.yaml @@ -113,9 +113,9 @@ security: security: false access_control: - - { path: "%sylius.security.admin_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] } + - { path: "%sylius.security.admin_regex%/_partial", role: PUBLIC_ACCESS, ips: [ 127.0.0.1, ::1 ] } - { path: "%sylius.security.admin_regex%/_partial", role: ROLE_NO_ACCESS } - - { path: "%sylius.security.shop_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] } + - { path: "%sylius.security.shop_regex%/_partial", role: PUBLIC_ACCESS, ips: [ 127.0.0.1, ::1 ] } - { path: "%sylius.security.shop_regex%/_partial", role: ROLE_NO_ACCESS } - { path: "%sylius.security.admin_regex%/login", role: PUBLIC_ACCESS } diff --git a/tests/Application/config/sylius/1.13/packages/jms_serializer.yaml b/tests/Application/config/sylius/1.13/packages/jms_serializer.yaml index ed7bc613..fa43f5b6 100644 --- a/tests/Application/config/sylius/1.13/packages/jms_serializer.yaml +++ b/tests/Application/config/sylius/1.13/packages/jms_serializer.yaml @@ -1,4 +1,4 @@ jms_serializer: - visitors: - xml_serialization: - format_output: '%kernel.debug%' + visitors: + xml_serialization: + format_output: '%kernel.debug%' diff --git a/tests/Application/config/sylius/1.13/packages/security.yaml b/tests/Application/config/sylius/1.13/packages/security.yaml index 7458c77a..6df8cb5a 100644 --- a/tests/Application/config/sylius/1.13/packages/security.yaml +++ b/tests/Application/config/sylius/1.13/packages/security.yaml @@ -102,9 +102,9 @@ security: security: false access_control: - - { path: "%sylius.security.admin_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] } + - { path: "%sylius.security.admin_regex%/_partial", role: PUBLIC_ACCESS, ips: [ 127.0.0.1, ::1 ] } - { path: "%sylius.security.admin_regex%/_partial", role: ROLE_NO_ACCESS } - - { path: "%sylius.security.shop_regex%/_partial", role: PUBLIC_ACCESS, ips: [127.0.0.1, ::1] } + - { path: "%sylius.security.shop_regex%/_partial", role: PUBLIC_ACCESS, ips: [ 127.0.0.1, ::1 ] } - { path: "%sylius.security.shop_regex%/_partial", role: ROLE_NO_ACCESS } - { path: "%sylius.security.admin_regex%/login", role: PUBLIC_ACCESS } diff --git a/tests/Application/config/symfony/4.4/packages/framework.yaml b/tests/Application/config/symfony/4.4/packages/framework.yaml index 62f82d35..4cc0d5ae 100644 --- a/tests/Application/config/symfony/4.4/packages/framework.yaml +++ b/tests/Application/config/symfony/4.4/packages/framework.yaml @@ -1,2 +1,2 @@ framework: - templating: { engines: ["twig"] } + templating: { engines: [ "twig" ] } diff --git a/tests/Application/src/Resources/config/doctrine/OrderItem.orm.xml b/tests/Application/src/Resources/config/doctrine/OrderItem.orm.xml index 5f6eaa93..b87772f8 100644 --- a/tests/Application/src/Resources/config/doctrine/OrderItem.orm.xml +++ b/tests/Application/src/Resources/config/doctrine/OrderItem.orm.xml @@ -5,7 +5,9 @@ http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" > - +