ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9457


Ignore:
Timestamp:
Dec 3, 2008, 2:31:03 PM (11 years ago)
Author:
ebihara
Message:

#3030:added opPluginManager

Location:
OpenPNE3/trunk/lib
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/plugin/opPearRest.class.php

    r9436 r9457  
    3838    return $parser->getData();
    3939  }
    40 
    4140}
  • OpenPNE3/trunk/lib/task/opPluginInstallTask.class.php

    r9437 r9457  
    2828  }
    2929
    30   protected function execute($arguments = array(), $options = array())
    31   {
    32     $environment = $this->getPluginManager()->getEnvironment();
    33 
    34     // register OpenPNE plugin channel
    35     $environment->registerChannel('plugins.openpne.jp', true);
    36 
    37     return parent::execute($arguments, $options);
    38   }
    39 
    4030  public function getPluginManager()
    4131  {
    4232    if (is_null($this->pluginManager))
    4333    {
    44       $environment = new sfPearEnvironment($this->dispatcher, array(
    45         'plugin_dir' => sfConfig::get('sf_plugins_dir'),
    46         'cache_dir'  => sfConfig::get('sf_cache_dir').'/.pear',
    47         'web_dir'    => sfConfig::get('sf_web_dir'),
    48         'rest_base_class' => 'opPearRest',
    49       ));
    50 
    51       $this->pluginManager = new sfSymfonyPluginManager($this->dispatcher, $environment);
     34      $this->pluginManager = new opPluginManager($this->dispatcher);
    5235    }
    5336
Note: See TracChangeset for help on using the changeset viewer.