mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-17 18:16:46 +03:00
mailxpert apibundle
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user