removed hardcoded secrets

This commit is contained in:
Djalim Simaila 2024-02-22 15:18:57 +00:00
parent 48bcf42e7d
commit 17b4e1bc77
2 changed files with 10 additions and 2 deletions

8
.env
View File

@ -19,6 +19,14 @@ APP_ENV=dev
APP_SECRET=c568351812f857b25cd8d151d705ee16
###< symfony/framework-bundle ###
###> Discog api keuy ###
#DISCOGS_KEY=kLzxeHuJCXRyQuBURaEN
#DISCOGS_SECRET=biDCkuoMbGLeDtQGqCPCtbVqmzPaVmQG
###< Discog api keuy ###
###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml

View File

@ -16,8 +16,8 @@ class Utils
// Set the base URI for the request and any default request options
$auth = array(
"key" => "kLzxeHuJCXRyQuBURaEN",
"secret" => "biDCkuoMbGLeDtQGqCPCtbVqmzPaVmQG"
"key" => $_ENV["DISCOGS_KEY"],
"secret" => $_ENV["DISCOGS_SECRET"]
);
// Create the query parameters array