Skip to content

Commit

Permalink
use dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
zajca committed Jun 1, 2023
1 parent cc117ae commit c086d43
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ services:
args:
PHP_VERSION: "8.1"
working_dir: /code/libs/azure-api-client
env_file:
- ./libs/azure-api-client/.env
volumes:
- .:/code
depends_on:
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion libs/azure-api-client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
vendor/
.env
!.env
.env.local
.env.*.local
1 change: 1 addition & 0 deletions libs/azure-api-client/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-webmozart-assert": "^1.2",
"sempro/phpunit-pretty-print": "^1.4",
"symfony/dotenv": "^6.3",
"symfony/http-client": "^6.2"
},
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions libs/azure-api-client/tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@

declare(strict_types=1);

use Symfony\Component\Dotenv\Dotenv;

require __DIR__ . '/../vendor/autoload.php';

(new Dotenv())
->usePutenv()
->bootEnv(dirname(__DIR__).'/.env', 'dev', [])
;

0 comments on commit c086d43

Please sign in to comment.