File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
default/bitrix/php_interface
prod/bitrix/php_interface Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ use Symfony \Component \Dotenv \Dotenv ;
4+
35if (!file_exists ($ autoloadPathDbconn = realpath (__DIR__ ).'/../../vendor/autoload.php ' )) {
46
57 $ autoloadPathDbconn = realpath (__DIR__ ).'/../../../current/vendor/autoload.php ' ;
68}
79
810require_once ($ autoloadPathDbconn ) ;
911
10- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../../ ' ));
11- $ dotenv ->load ();
12+ $ dotenv = new Dotenv ();
1213
14+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/../.env ' );
1315
1416define ("BX_USE_MYSQLI " , true );
1517define ("DBPersistent " , false );
Original file line number Diff line number Diff line change 11<?php
22
3+ use Symfony \Component \Dotenv \Dotenv ;
4+
35if (!file_exists ($ autoloadPathDbconn = realpath (__DIR__ ).'/../../vendor/autoload.php ' )) {
46
57 $ autoloadPathDbconn = realpath (__DIR__ ).'/../../../current/vendor/autoload.php ' ;
68}
79
810require_once ($ autoloadPathDbconn ) ;
911
10- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../../ ' ));
11- $ dotenv ->load ();
12+ $ dotenv = new Dotenv ();
1213
14+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/../.env ' );
1315
1416define ("BX_USE_MYSQLI " , true );
1517define ("DBPersistent " , false );
Original file line number Diff line number Diff line change 11<?php
22
3+ use Symfony \Component \Dotenv \Dotenv ;
4+
35if (!file_exists ($ autoloadPathDbconn = realpath (__DIR__ ).'/../../vendor/autoload.php ' )) {
46
57 $ autoloadPathDbconn = realpath (__DIR__ ).'/../../../current/vendor/autoload.php ' ;
68}
79
810require_once ($ autoloadPathDbconn ) ;
911
10- $ dotenv = new Dotenv \Dotenv (realpath (__DIR__ .'/../../ ' ));
11- $ dotenv ->load ();
12+ $ dotenv = new Dotenv ();
1213
14+ $ dotenv ->load (realpath (__DIR__ .'/../ ' ) . '/../.env ' );
1315
1416define ("BX_USE_MYSQLI " , true );
1517define ("DBPersistent " , false );
You can’t perform that action at this time.
0 commit comments