From ecbf1855204896131d9da5755ef1500130a32a9a Mon Sep 17 00:00:00 2001 From: imper Date: Fri, 4 Oct 2019 12:10:55 +0200 Subject: [PATCH] imper86/allegro-api-bundle recipe --- .../2.0/config/packages/imper86_allegro_api.yaml | 4 ++++ imper86/allegro-api-bundle/2.0/manifest.json | 12 ++++++++++++ imper86/allegro-api-bundle/2.0/post-install.txt | 9 +++++++++ 3 files changed, 25 insertions(+) create mode 100644 imper86/allegro-api-bundle/2.0/config/packages/imper86_allegro_api.yaml create mode 100644 imper86/allegro-api-bundle/2.0/manifest.json create mode 100644 imper86/allegro-api-bundle/2.0/post-install.txt diff --git a/imper86/allegro-api-bundle/2.0/config/packages/imper86_allegro_api.yaml b/imper86/allegro-api-bundle/2.0/config/packages/imper86_allegro_api.yaml new file mode 100644 index 00000000..f921985f --- /dev/null +++ b/imper86/allegro-api-bundle/2.0/config/packages/imper86_allegro_api.yaml @@ -0,0 +1,4 @@ +imper86_allegro_api: + sandbox: true + client_id: '%env(ALLEGRO_CLIENT_ID)%' + client_secret: '%env(ALLEGRO_CLIENT_SECRET)%' diff --git a/imper86/allegro-api-bundle/2.0/manifest.json b/imper86/allegro-api-bundle/2.0/manifest.json new file mode 100644 index 00000000..e178b69f --- /dev/null +++ b/imper86/allegro-api-bundle/2.0/manifest.json @@ -0,0 +1,12 @@ +{ + "bundles": { + "Imper86\\AllegroApiBundle\\Imper86AllegroApiBundle": ["all"] + }, + "env": { + "ALLEGRO_CLIENT_ID": "your_client_id", + "ALLEGRO_CLIENT_SECRET": "your_client_secret" + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/imper86/allegro-api-bundle/2.0/post-install.txt b/imper86/allegro-api-bundle/2.0/post-install.txt new file mode 100644 index 00000000..d5ced913 --- /dev/null +++ b/imper86/allegro-api-bundle/2.0/post-install.txt @@ -0,0 +1,9 @@ + + Allegro API - next steps + + + * Register your application by visiting https://apps.developer.allegro.pl/ or https://apps.developer.allegro.pl.allegrosandbox.pl/ + * Edit .env.local with your client id and client secret + * Configure bundle - imper86_allegro_api.yaml in your config/packages directory + * Do make:migration or doctrine:schema:update for bundle's entities + * Start using visiting /allegro-api/start - this route will prepare allegro authorization url and will redirect you to allegro login page