mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
bug fix.
This commit is contained in:
@ -29,7 +29,7 @@ class Plugin implements PluginInterface
|
||||
$file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yiisoft/extensions.php';
|
||||
if (!is_file($file)) {
|
||||
@mkdir(dirname($file));
|
||||
file_put_contents($file, "<?php\nreturn [];\n");
|
||||
file_put_contents($file, "<?php\n\nreturn [];\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user