Skip to content

Commit 0ff2d73

Browse files
committed
[Runtime] fix ComposerPlugin
1 parent 310fc6a commit 0ff2d73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Runtime/Internal/ComposerPlugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ public function updateAutoloadFile(): void
8282
$projectDir = substr($projectDir, 3);
8383
}
8484

85+
// the hack about __DIR__ is required because composer pre-processes plugins
8586
if (!$nestingLevel) {
86-
$projectDir = '__DIR__.'.var_export('/'.$projectDir, true);
87+
$projectDir = '__'.'DIR__.'.var_export('/'.$projectDir, true);
8788
} else {
8889
$projectDir = 'dirname(__'."DIR__, $nestingLevel)".('' !== $projectDir ? '.'.var_export('/'.$projectDir, true) : '');
8990
}

0 commit comments

Comments
 (0)