sfConsoleRequest.class.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
  5. * (c) 2004-2006 Sean Kerr <sean@code-box.org>
  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. *
  12. * @package symfony
  13. * @subpackage request
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @author Sean Kerr <sean@code-box.org>
  16. * @version SVN: $Id: sfConsoleRequest.class.php 11313 2008-09-03 17:28:33Z fabien $
  17. */
  18. class sfConsoleRequest extends sfRequest
  19. {
  20. /**
  21. * Initializes this sfRequest.
  22. *
  23. * @param sfEventDispatcher $dispatcher An sfEventDispatcher instance
  24. * @param array $parameters An associative array of initialization parameters
  25. * @param array $attributes An associative array of initialization attributes
  26. * @param array $options An associative array of options
  27. *
  28. * @return bool true, if initialization completes successfully, otherwise false
  29. *
  30. * @throws <b>sfInitializationException</b> If an error occurs while initializing this sfRequest
  31. */
  32. public function initialize(sfEventDispatcher $dispatcher, $parameters = array(), $attributes = array(), $options = array())
  33. {
  34. parent::initialize($dispatcher, $parameters, $attributes, $options);
  35. $this->getParameterHolder()->add($_SERVER['argv']);
  36. }
  37. }