Skip to content

Commit 2192ede

Browse files
committed
fix: fixes an issue when trying to install the package in the website
1 parent 9d9170a commit 2192ede

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Composer/Plugin.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,15 @@ public function activate(Composer $composer, IOInterface $io)
108108
*/
109109
public function onAutorunBecauseInstall(Event $event): void
110110
{
111-
$factory = Factory::new($this->composer, $this->io, null, $event->isDevMode());
111+
$arguments = new CompileAssetsPassedArguments(
112+
$event->isDevMode(),
113+
''
114+
);
115+
$factory = Factory::new(
116+
$this->composer,
117+
$this->io,
118+
$arguments
119+
);
112120
if ($factory->rootConfig()->autoRun()) {
113121
$this->mode or $this->mode = self::MODE_COMPOSER_INSTALL;
114122
$this->run($factory);

0 commit comments

Comments
 (0)