Development

/branches/1.1/lib/plugin/sfPearDownloader.class.php

You must first sign up to be able to contribute.

root/branches/1.1/lib/plugin/sfPearDownloader.class.php

Revision 5250, 0.8 kB (checked in by fabien, 7 years ago)

new plugin system

  • the plugin system can be used by itself (no symfony dependency)
  • new plugin/ directory with all plugin related classes
    • those classes can be used by themselves in your code (see unit tests for some examples)
  • leveraged PEAR channels:
    • use of the full PEAR REST API
    • it's now possible to install plugins hosted on any PEAR channel
    • dependencies are now checked
    • last version guess now takes into account stability and symfony version
  • added more options to the CLI tasks:
    • --install_deps: to automatically install required dependencies
    • --release: to install a specific plugin release
    • --stability: to change the preferred stability (stable by default)
    • --channel: to install plugins from other PEAR channels
  • added some events:
    • plugin.pre_install
    • plugin.post_install
    • plugin.pre_uninstall
    • plugin.post_uninstall
  • added the possibility to mock all HTTP related layers of PEAR (PEAR_REST, PEAR_Downloader)
  • added full unit tests for all the features

The symfony plugin repository is comptatible with symfony 1.0 and 1.1.

The new repository will be at plugins.symfony-project.org (.org and not .com).
It will be up this week. In the meantime, it's not possible to install plugins
via the plugin:* tasks. The new backend won't accept plugins with "non-compliant"
licenses.

  • 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) 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/Downloader.php';
12
13 /**
14  * sfPearDownloader downloads files from the Internet.
15  *
16  * @package    symfony
17  * @subpackage plugin
18  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
19  * @version    SVN: $Id$
20  */
21 class sfPearDownloader extends PEAR_Downloader
22 {
23   /**
24    * @see PEAR_REST::downloadHttp()
25    */
26   public function downloadHttp($url, &$ui, $save_dir = '.', $callback = null, $lastmodified = null, $accept = false, $channel = false)
27   {
28     return parent::downloadHttp($url, $ui, $save_dir, $callback, $lastmodified, $accept, $channel);
29   }
30 }
31
Note: See TracBrowser for help on using the browser.