Development

/branches/1.2/lib/task/plugin/sfPluginBaseTask.class.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/task/plugin/sfPluginBaseTask.class.php

Revision 6931, 1.0 kB (checked in by fabien, 7 years ago)

fixed PhpDoc? subpackage for tasks

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * Base class for all symfony plugin tasks.
13  *
14  * @package    symfony
15  * @subpackage task
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 abstract class sfPluginBaseTask extends sfBaseTask
20 {
21   private
22    $pluginManager = null;
23
24   public function getPluginManager()
25   {
26     if (is_null($this->pluginManager))
27     {
28       $environment = new sfPearEnvironment($this->dispatcher, array(
29         'plugin_dir' => sfConfig::get('sf_plugins_dir'),
30         'cache_dir'  => sfConfig::get('sf_cache_dir').'/.pear',
31         'web_dir'    => sfConfig::get('sf_web_dir'),
32       ));
33
34       $this->pluginManager = new sfSymfonyPluginManager($this->dispatcher, $environment);
35     }
36
37     return $this->pluginManager;
38   }
39 }
40
Note: See TracBrowser for help on using the browser.