mailxpert apibundle

This commit is contained in:
Patrick Landolt
2017-11-18 11:25:55 +01:00
parent f546718680
commit d4af2280bb
4 changed files with 44 additions and 0 deletions
@@ -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'
@@ -0,0 +1,3 @@
mx_api:
resource: '@MailxpertAPIBundle/Resources/config/routing.xml'
type: xml
+9
View File
@@ -0,0 +1,9 @@
{
"bundles": {
"Mailxpert\\APIBundle\\MailxpertAPIBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/Entity/AccessToken.php": "%SRC_DIR%/Entity/AccessToken.php"
}
}
@@ -0,0 +1,26 @@
<?php
namespace AppBundle\Entity;
use Mailxpert\APIBundle\Entity\AccessToken as BaseAccessToken;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="mx_access_token")
*/
class AccessToken extends BaseAccessToken
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
public function __construct()
{
parent::__construct();
// your own logic
}
}