File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use Symfony \Component \Dotenv \Dotenv ;
3
4
4
5
if (!file_exists ($ autoloadPath = realpath (__DIR__ ).'/../vendor/autoload.php ' )) {
5
6
8
9
9
10
require_once ($ autoloadPath ) ;
10
11
11
- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../ ' ));
12
- $ dotenv ->load ();
12
+ $ dotenv = new Dotenv ();
13
+
14
+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/.env ' );
13
15
14
16
$ cache = array (
15
17
'value ' => array (
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 ($ autoloadPath = realpath (__DIR__ ).'/../vendor/autoload.php ' )) {
4
6
5
7
$ autoloadPath = realpath (__DIR__ ).'/../../current/vendor/autoload.php ' ;
6
8
}
9
+
7
10
require_once ($ autoloadPath ) ;
8
11
9
- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../ ' ));
10
- $ dotenv ->load ();
12
+ $ dotenv = new Dotenv ();
11
13
14
+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/.env ' );
12
15
13
16
return array (
14
17
'utf_mode ' =>
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 ($ autoloadPath = realpath (__DIR__ ).'/../vendor/autoload.php ' )) {
4
6
5
7
$ autoloadPath = realpath (__DIR__ ).'/../../current/vendor/autoload.php ' ;
6
8
}
9
+
7
10
require_once ($ autoloadPath ) ;
8
11
9
- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../ ' ));
10
- $ dotenv ->load ();
12
+ $ dotenv = new Dotenv ();
11
13
14
+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/.env ' );
12
15
13
16
return array (
14
17
'utf_mode ' =>
You can’t perform that action at this time.
0 commit comments