Skip to content

Commit 0e8c3e8

Browse files
committed
🐛 non composer setups
Signed-off-by: Bruno Meilick <[email protected]>
1 parent b185dc5 commit 0e8c3e8

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

classes/DotEnv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function loadFromDir(string $dir, string $file): bool
5858
if (! $dir || ! $file) {
5959
return false;
6060
}
61-
$this->dotenv = \Dotenv\Dotenv::createMutable($dir, $file);
61+
$this->dotenv = \Dotenv\Dotenv::createMutable(realpath($dir), $file);
6262

6363
try {
6464
$this->dotenv->load();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-dotenv",
33
"type": "kirby-plugin",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"description": "Kirby 3 Plugin for environment variables from .env",
66
"license": "MIT",
77
"authors": [

global.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
@include_once __DIR__ . '/vendor/autoload.php';
34
require_once __DIR__ . '/classes/DotEnv.php';
45

56
if (! function_exists('loadenv')) {

vendor/composer/InstalledVersions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class InstalledVersions
2727
private static $installed = array (
2828
'root' =>
2929
array (
30-
'pretty_version' => '2.0.1',
31-
'version' => '2.0.1.0',
30+
'pretty_version' => '2.0.2',
31+
'version' => '2.0.2.0',
3232
'aliases' =>
3333
array (
3434
),
@@ -39,8 +39,8 @@ class InstalledVersions
3939
array (
4040
'bnomei/kirby3-dotenv' =>
4141
array (
42-
'pretty_version' => '2.0.1',
43-
'version' => '2.0.1.0',
42+
'pretty_version' => '2.0.2',
43+
'version' => '2.0.2.0',
4444
'aliases' =>
4545
array (
4646
),

vendor/composer/installed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php return array (
22
'root' =>
33
array (
4-
'pretty_version' => '2.0.1',
5-
'version' => '2.0.1.0',
4+
'pretty_version' => '2.0.2',
5+
'version' => '2.0.2.0',
66
'aliases' =>
77
array (
88
),
@@ -13,8 +13,8 @@
1313
array (
1414
'bnomei/kirby3-dotenv' =>
1515
array (
16-
'pretty_version' => '2.0.1',
17-
'version' => '2.0.1.0',
16+
'pretty_version' => '2.0.2',
17+
'version' => '2.0.2.0',
1818
'aliases' =>
1919
array (
2020
),

0 commit comments

Comments
 (0)