Extension installer wip

This commit is contained in:
Qiang Xue
2013-10-19 00:35:57 -04:00
parent f756ab608f
commit 03861b6fde
7 changed files with 42 additions and 6 deletions

View File

@ -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");
}
}
}