mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
using env vars for id and secreat; removing dummy constructor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
mailxpert_api:
|
||||
access_token_class: App\Entity\AccessToken
|
||||
oauth:
|
||||
client_id: 'client_id_to_replace'
|
||||
client_secret: 'client_secret_to_replace'
|
||||
client_id: '%env(MAILXPERT_CLIENT_ID)%'
|
||||
client_secret: '%env(MAILXPERT_CLIENT_SECRET)%'
|
||||
redirect_url: 'http://example.com/mx/oauth/code'
|
||||
|
||||
@@ -5,5 +5,9 @@
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/Entity/AccessToken.php": "%SRC_DIR%/Entity/AccessToken.php"
|
||||
},
|
||||
"env": {
|
||||
"MAILXPERT_CLIENT_ID": "mailxpert_client_id_to_replace",
|
||||
"MAILXPERT_CLIENT_SECRET": "mailxpert_client_secret_to_replace"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,4 @@ class AccessToken extends BaseAccessToken
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// your own logic
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user