From fa6304b14e71ec2ea8fbd4b6c852296085dd5cdd Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Tue, 12 Mar 2019 14:02:10 +0100 Subject: [PATCH 1/7] commercetools bundle v0.4 --- .../0.4/config/packages/commercetools.yaml | 11 ++++++++++ .../0.4/config/packages/security.yaml | 22 +++++++++++++++++++ .../symfony-bundle/0.4/manifest.json | 17 ++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml create mode 100644 commercetools/symfony-bundle/0.4/config/packages/security.yaml create mode 100644 commercetools/symfony-bundle/0.4/manifest.json diff --git a/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml b/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml new file mode 100644 index 00000000..88fb83ba --- /dev/null +++ b/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml @@ -0,0 +1,11 @@ +commercetools: + api: + default_client: 'default' + clients: + default: + client_id: '%env(CTP_CLIENT_ID)%' + client_secret: '%env(CTP_CLIENT_SECRET)%' + project: '%env(CTP_PROJECT_KEY)%' + scope: '%env(CTP_SCOPE)%' + oauth_url: '%env(CTP_AUTH_URL)%' + api_url: '%env(CTP_API_URL)%' diff --git a/commercetools/symfony-bundle/0.4/config/packages/security.yaml b/commercetools/symfony-bundle/0.4/config/packages/security.yaml new file mode 100644 index 00000000..632eefb6 --- /dev/null +++ b/commercetools/symfony-bundle/0.4/config/packages/security.yaml @@ -0,0 +1,22 @@ +security: + providers: + ctp: + id: Commercetools\Symfony\CustomerBundle\Security\User\UserProvider + access_control: + - { path: /user/, roles: ROLE_USER } + encoders: + Symfony\Component\Security\Core\User\User: plaintext + Commercetools\Symfony\CustomerBundle\Security\User\User: plaintext + firewalls: + main: + anonymous: ~ + commercetools-login: + login_path: login + check_path: login_check + logout: + path: logout + dev: + pattern: ^/(_(profiler|wdt)|css|images|js)/ + security: false + default: + anonymous: ~ diff --git a/commercetools/symfony-bundle/0.4/manifest.json b/commercetools/symfony-bundle/0.4/manifest.json new file mode 100644 index 00000000..64212345 --- /dev/null +++ b/commercetools/symfony-bundle/0.4/manifest.json @@ -0,0 +1,17 @@ +{ + "bundles": { + "Commercetools\\Symfony\\CtpBundle\\CtpBundle": ["all"], + "Commercetools\\Symfony\\CustomerBundle\\CustomerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "CTP_CLIENT_ID": "", + "CTP_CLIENT_SECRET": "", + "CTP_PROJECT_KEY": "", + "CTP_AUTH_URL": "https://auth.commercetools.com or https://auth.commercetools.co", + "CTP_API_URL": "https://api.commercetools.com or https://api.commercetools.co", + "CTP_SCOPES": "" + } +} From a60d09355cf02af6ec8ca1093ab63426ef963762 Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Tue, 12 Mar 2019 14:15:03 +0100 Subject: [PATCH 2/7] Trigger flex-server From eba38d6ca80e0a4d319c3a0a7af68e2b2c5113fd Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Tue, 12 Mar 2019 15:25:43 +0100 Subject: [PATCH 3/7] add setupBundle & stateBundle to dev env --- commercetools/symfony-bundle/0.4/manifest.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commercetools/symfony-bundle/0.4/manifest.json b/commercetools/symfony-bundle/0.4/manifest.json index 64212345..7c587337 100644 --- a/commercetools/symfony-bundle/0.4/manifest.json +++ b/commercetools/symfony-bundle/0.4/manifest.json @@ -1,7 +1,9 @@ { "bundles": { "Commercetools\\Symfony\\CtpBundle\\CtpBundle": ["all"], - "Commercetools\\Symfony\\CustomerBundle\\CustomerBundle": ["all"] + "Commercetools\\Symfony\\CustomerBundle\\CustomerBundle": ["all"], + "Commercetools\\Symfony\\SetupBundle\\SetupBundle": ["dev"], + "Commercetools\\Symfony\\StateBundle\\StateBundle": ["dev"] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" From 67fddc8c4b8d63faf62e78b246f7fae7436b0bcb Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Tue, 12 Mar 2019 15:29:46 +0100 Subject: [PATCH 4/7] fix package config naming --- .../symfony-bundle/0.4/config/packages/commercetools.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml b/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml index 88fb83ba..25550979 100644 --- a/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml +++ b/commercetools/symfony-bundle/0.4/config/packages/commercetools.yaml @@ -6,6 +6,6 @@ commercetools: client_id: '%env(CTP_CLIENT_ID)%' client_secret: '%env(CTP_CLIENT_SECRET)%' project: '%env(CTP_PROJECT_KEY)%' - scope: '%env(CTP_SCOPE)%' + scope: '%env(CTP_SCOPES)%' oauth_url: '%env(CTP_AUTH_URL)%' api_url: '%env(CTP_API_URL)%' From d5a955f3fbece68d05073ad7b6bf4f3cbeb16c0d Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Tue, 12 Mar 2019 16:44:26 +0100 Subject: [PATCH 5/7] Trigger travis build From 4b7f23e93b2293e42c3ce060347d29826c5dd3d0 Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Wed, 13 Mar 2019 12:44:33 +0100 Subject: [PATCH 6/7] commercetools add post-install.txt file --- commercetools/symfony-bundle/0.4/post-install.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 commercetools/symfony-bundle/0.4/post-install.txt diff --git a/commercetools/symfony-bundle/0.4/post-install.txt b/commercetools/symfony-bundle/0.4/post-install.txt new file mode 100644 index 00000000..c544efeb --- /dev/null +++ b/commercetools/symfony-bundle/0.4/post-install.txt @@ -0,0 +1,10 @@ + + Next: commercetools API Configuration + + + * Get your API client credentials from https://mc.commercetools.com or + https://mc.commercetools.co and configure them in your .env + + * commercetools-symfony-bundle documentation https://github.com/commercetools/commercetools-php-symfony + + * commercetools API Documentation: https://docs.commercetools.com/http-api.html From 63edc13810143e6df25e245b998d64cdb110f756 Mon Sep 17 00:00:00 2001 From: "nikos.sotiropoulos" Date: Wed, 10 Apr 2019 11:12:17 +0200 Subject: [PATCH 7/7] remove security.yaml --- .../0.4/config/packages/security.yaml | 22 ------------------- .../symfony-bundle/0.4/manifest.json | 1 - 2 files changed, 23 deletions(-) delete mode 100644 commercetools/symfony-bundle/0.4/config/packages/security.yaml diff --git a/commercetools/symfony-bundle/0.4/config/packages/security.yaml b/commercetools/symfony-bundle/0.4/config/packages/security.yaml deleted file mode 100644 index 632eefb6..00000000 --- a/commercetools/symfony-bundle/0.4/config/packages/security.yaml +++ /dev/null @@ -1,22 +0,0 @@ -security: - providers: - ctp: - id: Commercetools\Symfony\CustomerBundle\Security\User\UserProvider - access_control: - - { path: /user/, roles: ROLE_USER } - encoders: - Symfony\Component\Security\Core\User\User: plaintext - Commercetools\Symfony\CustomerBundle\Security\User\User: plaintext - firewalls: - main: - anonymous: ~ - commercetools-login: - login_path: login - check_path: login_check - logout: - path: logout - dev: - pattern: ^/(_(profiler|wdt)|css|images|js)/ - security: false - default: - anonymous: ~ diff --git a/commercetools/symfony-bundle/0.4/manifest.json b/commercetools/symfony-bundle/0.4/manifest.json index 7c587337..457cf97e 100644 --- a/commercetools/symfony-bundle/0.4/manifest.json +++ b/commercetools/symfony-bundle/0.4/manifest.json @@ -1,7 +1,6 @@ { "bundles": { "Commercetools\\Symfony\\CtpBundle\\CtpBundle": ["all"], - "Commercetools\\Symfony\\CustomerBundle\\CustomerBundle": ["all"], "Commercetools\\Symfony\\SetupBundle\\SetupBundle": ["dev"], "Commercetools\\Symfony\\StateBundle\\StateBundle": ["dev"] },