Request.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Oauth
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /** Zend_Oauth_Token */
  22. #require_once 'Zend/Oauth/Token.php';
  23. /**
  24. * @category Zend
  25. * @package Zend_Oauth
  26. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @license http://framework.zend.com/license/new-bsd New BSD License
  28. */
  29. class Zend_Oauth_Token_Request extends Zend_Oauth_Token
  30. {
  31. /**
  32. * Constructor
  33. *
  34. * @param null|Zend_Http_Response $response
  35. * @param null|Zend_Oauth_Http_Utility $utility
  36. */
  37. public function __construct(
  38. Zend_Http_Response $response = null,
  39. Zend_Oauth_Http_Utility $utility = null
  40. ) {
  41. parent::__construct($response, $utility);
  42. // detect if server supports OAuth 1.0a
  43. if (isset($this->_params[Zend_Oauth_Token::TOKEN_PARAM_CALLBACK_CONFIRMED])) {
  44. Zend_Oauth_Client::$supportsRevisionA = true;
  45. }
  46. }
  47. }