File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
use Composer \Autoload \ClassLoader ;
14
+ use Composer \Config ;
14
15
use Composer \Composer ;
15
16
use Composer \EventDispatcher \EventSubscriberInterface ;
16
17
use Composer \IO \IOInterface ;
@@ -99,7 +100,7 @@ public function onPreAutoloadDump()
99
100
if ($ includeFile ->dump ()) {
100
101
$ rootPackage = $ this ->composer ->getPackage ();
101
102
$ autoloadDefinition = $ rootPackage ->getAutoload ();
102
- $ autoloadDefinition ['files ' ][] = $ includeFilePath ;
103
+ $ autoloadDefinition ['files ' ][] = $ this -> composer -> getConfig ()-> get ( ' vendor-dir ' , Config:: RELATIVE_PATHS ) . self :: INCLUDE_FILE ;
103
104
$ rootPackage ->setAutoload ($ autoloadDefinition );
104
105
$ this ->io ->writeError ('<info>helhum/dotenv-connector:</info> Generated dotenv include file ' );
105
106
} else {
You can’t perform that action at this time.
0 commit comments