using env vars for id and secreat; removing dummy constructor

This commit is contained in:
Patrick Landolt
2017-11-21 08:47:41 +01:00
parent 21041004db
commit a590eb0be3
3 changed files with 6 additions and 7 deletions

View File

@@ -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'

View File

@@ -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"
}
}

View File

@@ -18,9 +18,4 @@ class AccessToken extends BaseAccessToken
*/
protected $id;
public function __construct()
{
parent::__construct();
// your own logic
}
}