mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
Extension installer wip
This commit is contained in:
@ -26,5 +26,9 @@ class InstallerPlugin implements PluginInterface
|
||||
{
|
||||
$installer = new Installer($io, $composer);
|
||||
$composer->getInstallationManager()->addInstaller($installer);
|
||||
$file = rtrim($composer->getConfig()->get('vendor-dir'), '/') . '/yii-extensions.php';
|
||||
if (!is_file($file)) {
|
||||
file_put_contents($file, "<?php\nreturn array();\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user