Skip to content

Commit

Permalink
🐛 non composer setups
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed May 26, 2021
1 parent b185dc5 commit 0e8c3e8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion classes/DotEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function loadFromDir(string $dir, string $file): bool
if (! $dir || ! $file) {
return false;
}
$this->dotenv = \Dotenv\Dotenv::createMutable($dir, $file);
$this->dotenv = \Dotenv\Dotenv::createMutable(realpath($dir), $file);

try {
$this->dotenv->load();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-dotenv",
"type": "kirby-plugin",
"version": "2.0.1",
"version": "2.0.2",
"description": "Kirby 3 Plugin for environment variables from .env",
"license": "MIT",
"authors": [
Expand Down
1 change: 1 addition & 0 deletions global.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

@include_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/classes/DotEnv.php';

if (! function_exists('loadenv')) {
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/InstalledVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class InstalledVersions
private static $installed = array (
'root' =>
array (
'pretty_version' => '2.0.1',
'version' => '2.0.1.0',
'pretty_version' => '2.0.2',
'version' => '2.0.2.0',
'aliases' =>
array (
),
Expand All @@ -39,8 +39,8 @@ class InstalledVersions
array (
'bnomei/kirby3-dotenv' =>
array (
'pretty_version' => '2.0.1',
'version' => '2.0.1.0',
'pretty_version' => '2.0.2',
'version' => '2.0.2.0',
'aliases' =>
array (
),
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array (
'root' =>
array (
'pretty_version' => '2.0.1',
'version' => '2.0.1.0',
'pretty_version' => '2.0.2',
'version' => '2.0.2.0',
'aliases' =>
array (
),
Expand All @@ -13,8 +13,8 @@
array (
'bnomei/kirby3-dotenv' =>
array (
'pretty_version' => '2.0.1',
'version' => '2.0.1.0',
'pretty_version' => '2.0.2',
'version' => '2.0.2.0',
'aliases' =>
array (
),
Expand Down

0 comments on commit 0e8c3e8

Please sign in to comment.