Add public folder for plugins

This commit is contained in:
Romain Neutron
2013-07-02 17:35:31 +02:00
parent d3a40c8b38
commit fed9422103
12 changed files with 78 additions and 0 deletions

View File

@@ -50,6 +50,13 @@ class AddPlugin extends AbstractPluginCommand
$this->container['filesystem']->mirror($temporaryDir, $targetDir);
$output->writeln(" <comment>OK</comment>");
$output->write("Copying public files <info>".$manifest->getName()."</info>...");
$this->container['filesystem']->mirror(
$targetDir . DIRECTORY_SEPARATOR . 'public',
$this->container['root.path'] . DIRECTORY_SEPARATOR . 'www' . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . $manifest->getName()
);
$output->writeln(" <comment>OK</comment>");
$output->write("Removing temporary directory...");
$this->container['filesystem']->remove($temporaryDir);
$output->writeln(" <comment>OK</comment>");