sfConsoleRequest.class.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 9098 2008-05-20 07:57:54Z FabianLange $
  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. *
  27. * @return bool true, if initialization completes successfully, otherwise false
  28. *
  29. * @throws <b>sfInitializationException</b> If an error occurs while initializing this sfRequest
  30. */
  31. public function initialize(sfEventDispatcher $dispatcher, $parameters = array(), $attributes = array())
  32. {
  33. parent::initialize($dispatcher, $parameters, $attributes);
  34. $this->getParameterHolder()->add($_SERVER['argv']);
  35. }
  36. }