sfPearRest.class.php 866 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. require_once 'PEAR/REST.php';
  10. /**
  11. * sfPearRest interacts with a PEAR channel.
  12. *
  13. * @package symfony
  14. * @subpackage plugin
  15. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  16. * @version SVN: $Id: sfPearRest.class.php 10677 2008-08-05 19:11:48Z fabien $
  17. */
  18. class sfPearRest extends PEAR_REST
  19. {
  20. /**
  21. * @see PEAR_REST::downloadHttp()
  22. */
  23. public function downloadHttp($url, $lastmodified = null, $accept = false)
  24. {
  25. return parent::downloadHttp($url, $lastmodified, array_merge(false !== $accept ? $accept : array(), array("\r\nX-SYMFONY-VERSION: ".SYMFONY_VERSION)));
  26. }
  27. }