|
Revision 6931, 1.0 kB
(checked in by fabien, 5 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 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 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 |
|
|---|