File tree 3 files changed +12
-6
lines changed
default/bitrix/php_interface
prod/bitrix/php_interface
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Symfony \Component \Dotenv \Dotenv ;
4
+
3
5
if (!file_exists ($ autoloadPathDbconn = realpath (__DIR__ ).'/../../vendor/autoload.php ' )) {
4
6
5
7
$ autoloadPathDbconn = realpath (__DIR__ ).'/../../../current/vendor/autoload.php ' ;
6
8
}
7
9
8
10
require_once ($ autoloadPathDbconn ) ;
9
11
10
- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../../ ' ));
11
- $ dotenv ->load ();
12
+ $ dotenv = new Dotenv ();
12
13
14
+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/../.env ' );
13
15
14
16
define ("BX_USE_MYSQLI " , true );
15
17
define ("DBPersistent " , false );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Symfony \Component \Dotenv \Dotenv ;
4
+
3
5
if (!file_exists ($ autoloadPathDbconn = realpath (__DIR__ ).'/../../vendor/autoload.php ' )) {
4
6
5
7
$ autoloadPathDbconn = realpath (__DIR__ ).'/../../../current/vendor/autoload.php ' ;
6
8
}
7
9
8
10
require_once ($ autoloadPathDbconn ) ;
9
11
10
- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../../ ' ));
11
- $ dotenv ->load ();
12
+ $ dotenv = new Dotenv ();
12
13
14
+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/../.env ' );
13
15
14
16
define ("BX_USE_MYSQLI " , true );
15
17
define ("DBPersistent " , false );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Symfony \Component \Dotenv \Dotenv ;
4
+
3
5
if (!file_exists ($ autoloadPathDbconn = realpath (__DIR__ ).'/../../vendor/autoload.php ' )) {
4
6
5
7
$ autoloadPathDbconn = realpath (__DIR__ ).'/../../../current/vendor/autoload.php ' ;
6
8
}
7
9
8
10
require_once ($ autoloadPathDbconn ) ;
9
11
10
- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../../ ' ));
11
- $ dotenv ->load ();
12
+ $ dotenv = new Dotenv ();
12
13
14
+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/../.env ' );
13
15
14
16
define ("BX_USE_MYSQLI " , true );
15
17
define ("DBPersistent " , false );
You can’t perform that action at this time.
0 commit comments