Development

Changeset 11005

You must first sign up to be able to contribute.

Changeset 11005

Show
Ignore:
Timestamp:
08/20/08 20:46:23 (11 months ago)
Author:
FabianLange
Message:

1.2: Implemented task for "configuring" core plugins. At the moment this task sends the plugin.post_install event.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/plugin/sfSymfonyPluginManager.class.php

    r9131 r11005  
    6565   * @param string $plugin The plugin name 
    6666   */ 
    67   public function installWebContent($plugin
     67  public function installWebContent($plugin, $sourceDirectory
    6868  { 
    69     $webDir = $this->environment->getOption('plugin_dir').DIRECTORY_SEPARATOR.$plugin.DIRECTORY_SEPARATOR.'web'; 
     69    $webDir = $sourceDirectory.DIRECTORY_SEPARATOR.$plugin.DIRECTORY_SEPARATOR.'web'; 
    7070    if (is_dir($webDir)) 
    7171    { 
     
    110110  public function ListenToPluginPostInstall($event) 
    111111  { 
    112     $this->installWebContent($event['plugin']); 
     112    $this->installWebContent($event['plugin'],  
     113           isset($event['sourceDirectory']) ? $event['sourceDirectory'] : $this->environment->getOption('plugin_dir')); 
    113114  } 
    114115 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.