root/branches/1.2/lib/plugin/sfPearConfig.class.php
| Revision 17450, 0.7 kB (checked in by fabien, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the symfony package. |
| 5 | * (c) 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 | require_once 'PEAR/Config.php'; |
| 12 | |
| 13 | /** |
| 14 | * sfPearConfig. |
| 15 | * |
| 16 | * @package symfony |
| 17 | * @subpackage plugin |
| 18 | * @author Fabien Potencier <fabien.potencier@symfony-project.com> |
| 19 | * @version SVN: $Id: sfPearDownloader.class.php 5250 2007-09-24 08:11:50Z fabien $ |
| 20 | */ |
| 21 | class sfPearConfig extends PEAR_Config |
| 22 | { |
| 23 | function &getREST($version, $options = array()) |
| 24 | { |
| 25 | $class = 'sfPearRest'.str_replace('.', '', $version); |
| 26 | |
| 27 | $remote = new $class($this, $options); |
| 28 | |
| 29 | return $remote; |
| 30 | } |
| 31 | } |
| 32 |
Note: See TracBrowser for help on using the browser.