/** * Installs web content for a plugin. * * @param string $plugin The plugin name */ public function installWebContent($plugin, $sourceDirectory) { $webDir = $sourceDirectory . DIRECTORY_SEPARATOR . $plugin . DIRECTORY_SEPARATOR . 'web'; if (is_dir($webDir)) { $this->dispatcher->notify(new sfEvent($this, 'application.log', array('Installing web data for plugin'))); $filesystem = new sfFilesystem(); $filesystem->symlink($webDir, $this->environment->getOption('web_dir') . DIRECTORY_SEPARATOR . $plugin, true); } }