diff --git a/mailxpert/apibundle/0.1/config/packages/mailxpert_apibundle.yaml b/mailxpert/apibundle/0.1/config/packages/mailxpert_apibundle.yaml new file mode 100644 index 00000000..dfe16373 --- /dev/null +++ b/mailxpert/apibundle/0.1/config/packages/mailxpert_apibundle.yaml @@ -0,0 +1,6 @@ +mailxpert_api: + access_token_class: App\Entity\AccessToken + oauth: + client_id: '%env(MAILXPERT_CLIENT_ID)%' + client_secret: '%env(MAILXPERT_CLIENT_SECRET)%' + redirect_url: 'http://example.com/mx/oauth/code' diff --git a/mailxpert/apibundle/0.1/config/routes/mailxpert_apibundle.yaml b/mailxpert/apibundle/0.1/config/routes/mailxpert_apibundle.yaml new file mode 100644 index 00000000..1bfba390 --- /dev/null +++ b/mailxpert/apibundle/0.1/config/routes/mailxpert_apibundle.yaml @@ -0,0 +1,3 @@ +mx_api: + resource: '@MailxpertAPIBundle/Resources/config/routing.xml' + type: xml diff --git a/mailxpert/apibundle/0.1/manifest.json b/mailxpert/apibundle/0.1/manifest.json new file mode 100644 index 00000000..95e4f339 --- /dev/null +++ b/mailxpert/apibundle/0.1/manifest.json @@ -0,0 +1,13 @@ +{ + "bundles": { + "Mailxpert\\APIBundle\\MailxpertAPIBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + }, + "env": { + "MAILXPERT_CLIENT_ID": "mailxpert_client_id_to_replace", + "MAILXPERT_CLIENT_SECRET": "mailxpert_client_secret_to_replace" + } +} diff --git a/mailxpert/apibundle/0.1/src/Entity/AccessToken.php b/mailxpert/apibundle/0.1/src/Entity/AccessToken.php new file mode 100644 index 00000000..5a54ce3f --- /dev/null +++ b/mailxpert/apibundle/0.1/src/Entity/AccessToken.php @@ -0,0 +1,20 @@ +