Commit 0c8f3f22 by Qiang Xue

Fixes #5965.

parent fe546cd2
...@@ -28,7 +28,7 @@ class Plugin implements PluginInterface ...@@ -28,7 +28,7 @@ class Plugin implements PluginInterface
$composer->getInstallationManager()->addInstaller($installer); $composer->getInstallationManager()->addInstaller($installer);
$file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yiisoft/extensions.php'; $file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yiisoft/extensions.php';
if (!is_file($file)) { if (!is_file($file)) {
@mkdir(dirname($file)); @mkdir(dirname($file), 0777, true);
file_put_contents($file, "<?php\n\nreturn [];\n"); file_put_contents($file, "<?php\n\nreturn [];\n");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment