Skip to content

Commit

Permalink
Merge pull request #43 from tgrochowski/update_sylius_1.10
Browse files Browse the repository at this point in the history
Update to sylius 1.10
  • Loading branch information
KrisFlorq authored Jul 13, 2021
2 parents b322bf4 + 8df849b commit 47a09e3
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 85 deletions.
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"description": "MailChimp plugin for Sylius.",
"license": "MIT",
"require": {
"php": "^7.3",
"sylius/sylius": "~1.8.0 || ~1.9.0",
"php": "^7.4 || ^8.0",
"sylius/sylius": "^1.10",
"drewm/mailchimp-api": "^v2.5.4"
},
"require-dev": {
Expand All @@ -21,7 +21,6 @@
"friends-of-behat/suite-settings-extension": "^1.0",
"friends-of-behat/symfony-extension": "^2.1",
"friends-of-behat/variadic-extension": "^1.3",
"friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev",
"lakion/mink-debug-extension": "^2.0.0",
"phpspec/phpspec": "^7.0",
"phpstan/extension-installer": "^1.0",
Expand All @@ -39,9 +38,6 @@
"symfony/web-profiler-bundle": "^4.4 || ^5.2",
"vimeo/psalm": "4.6.4"
},
"conflict": {
"api-platform/core": "^2.6"
},
"prefer-stable": true,
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services:
public: true
arguments:
- "@bitbag_sylius_mailchimp_plugin.handler.newsletter_subscription_handler"
- "@fos_oauth_server.entity_manager"
- "@doctrine.orm.entity_manager"
tags:
- { name: "kernel.event_listener", event: "sylius.customer.post_register", method: customerCreateEvent }
- { name: "kernel.event_listener", event: "sylius.customer.pre_update", method: customerPreUpdateEvent }
Expand Down
2 changes: 1 addition & 1 deletion tests/Application/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db

MAIL_CHIMP_API_KEY='YourAPIKey'
MAIL_CHIMP_LIST_ID='YourMailingListID'
MAIL_CHIMP_WEBHOOK_SECRET=''
MAIL_CHIMP_WEBHOOK_SECRET=''
3 changes: 0 additions & 3 deletions tests/Application/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
Sylius\Bundle\ThemeBundle\SyliusThemeBundle::class => ['all' => true],
Sylius\Bundle\AdminBundle\SyliusAdminBundle::class => ['all' => true],
Sylius\Bundle\ShopBundle\SyliusShopBundle::class => ['all' => true],
FOS\OAuthServerBundle\FOSOAuthServerBundle::class => ['all' => true],
Sylius\Bundle\AdminApiBundle\SyliusAdminApiBundle::class => ['all' => true],
BitBag\SyliusMailChimpPlugin\BitBagSyliusMailChimpPlugin::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
Expand All @@ -58,5 +56,4 @@
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
Sylius\Bundle\ApiBundle\SyliusApiBundle::class => ['all' => true],
SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle::class => ['all' => true],
Symplify\ConsoleColorDiff\ConsoleColorDiffBundle::class => ['dev' => true, 'test' => true],
];
4 changes: 0 additions & 4 deletions tests/Application/config/packages/_sylius.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
imports:
- { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" }

- { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" }
- { resource: "@SyliusAdminApiBundle/Resources/config/app/config.yml" }

- { resource: "@SyliusShopBundle/Resources/config/app/config.yml" }

- { resource: "@SyliusApiBundle/Resources/config/app/config.yaml" }

parameters:
Expand Down
5 changes: 0 additions & 5 deletions tests/Application/config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ security:
target: sylius_admin_login
anonymous: true

oauth_token:
pattern: "%sylius.security.api_regex%/oauth/v2/token"
security: false

new_api_admin_user:
pattern: "%sylius.security.new_api_route%/admin-user-authentication-token"
provider: sylius_admin_user_provider
Expand Down Expand Up @@ -96,7 +92,6 @@ security:
api:
pattern: "%sylius.security.api_regex%/.*"
provider: sylius_admin_user_provider
fos_oauth: true
stateless: true
anonymous: true

Expand Down
3 changes: 0 additions & 3 deletions tests/Application/config/routes/sylius_admin_api.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions tests/Application/config/sylius/1.8/bundles.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/Application/config/sylius/1.8/routes/dev/twig.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions tests/Application/config/sylius/1.9/bundles.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 47a09e3

Please sign in to comment.