From 17b4e1bc77b5bb3632e81df298fd4955cc2b34f5 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Thu, 22 Feb 2024 15:18:57 +0000 Subject: [PATCH] removed hardcoded secrets --- .env | 8 ++++++++ src/Utils.php | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 752e1a0..156516e 100644 --- a/.env +++ b/.env @@ -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 diff --git a/src/Utils.php b/src/Utils.php index 40d8a15..62ba4c1 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -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