Skip to content

Commit 02f2325

Browse files
committed
Fix .settings.php
1 parent a776c08 commit 02f2325

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

environments/default/bitrix/.settings.php

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

3+
use Symfony\Component\Dotenv\Dotenv;
34

45
if (!file_exists($autoloadPath = realpath(__DIR__).'/../vendor/autoload.php')) {
56

@@ -8,8 +9,9 @@
89

910
require_once($autoloadPath) ;
1011

11-
$dotenv = new Dotenv\Dotenv(realpath(__DIR__.'/../'));
12-
$dotenv->load();
12+
$dotenv = new Dotenv();
13+
14+
$dotenv->load(realpath(__DIR__.'/../') . '/.env');
1315

1416
$cache = array (
1517
'value' => array (

environments/dev/bitrix/.settings.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
22

3+
use Symfony\Component\Dotenv\Dotenv;
4+
35
if (!file_exists($autoloadPath = realpath(__DIR__).'/../vendor/autoload.php')) {
46

57
$autoloadPath = realpath(__DIR__).'/../../current/vendor/autoload.php';
68
}
9+
710
require_once($autoloadPath) ;
811

9-
$dotenv = new Dotenv\Dotenv(realpath(__DIR__.'/../'));
10-
$dotenv->load();
12+
$dotenv = new Dotenv();
1113

14+
$dotenv->load(realpath(__DIR__.'/../') . '/.env');
1215

1316
return array (
1417
'utf_mode' =>

environments/prod/bitrix/.settings.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
22

3+
use Symfony\Component\Dotenv\Dotenv;
4+
35
if (!file_exists($autoloadPath = realpath(__DIR__).'/../vendor/autoload.php')) {
46

57
$autoloadPath = realpath(__DIR__).'/../../current/vendor/autoload.php';
68
}
9+
710
require_once($autoloadPath) ;
811

9-
$dotenv = new Dotenv\Dotenv(realpath(__DIR__.'/../'));
10-
$dotenv->load();
12+
$dotenv = new Dotenv();
1113

14+
$dotenv->load(realpath(__DIR__.'/../') . '/.env');
1215

1316
return array (
1417
'utf_mode' =>

0 commit comments

Comments
 (0)