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..f1d4ecb2 --- /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: 'client_id_to_replace' + client_secret: 'client_secret_to_replace' + 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..cf87e333 --- /dev/null +++ b/mailxpert/apibundle/0.1/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "Mailxpert\\APIBundle\\MailxpertAPIBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/Entity/AccessToken.php": "%SRC_DIR%/Entity/AccessToken.php" + } +} 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..5d1b22d7 --- /dev/null +++ b/mailxpert/apibundle/0.1/src/Entity/AccessToken.php @@ -0,0 +1,26 @@ +