svn: /pear2/Pyrus/trunk/src/Pyrus/ ScriptFrontend/Command.php ScriptFrontend/Commands.php ScriptFrontend/Renderer.php ScriptFrontend.php
[email protected] (Brett Bieber)
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
saltybeagle Tue, 11 May 2010 22:52:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299267
Log:
Reflect new namespace usage for pear2\Console\CommandLine
Changed paths:
U pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Command.php
U pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php
U pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Renderer.php
U pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend.php
Modified: pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Command.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Command.php 2010-05-11 22:10:33 UTC (rev 299266)
+++ pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Command.php 2010-05-11 22:52:45 UTC (rev 299267)
@@ -1,7 +1,7 @@
<?php
/**
- * Extension to PEAR2_Console_CommandLine_Command
+ * Extension to pear2\Console\CommandLine\Command
*
* PHP version 5
*
@@ -26,7 +26,7 @@
*/
namespace pear2\Pyrus\ScriptFrontend;
-class Command extends \PEAR2_Console_CommandLine_Command
+class Command extends \pear2\Console\CommandLine\Command
{
/**
Modified: pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php 2010-05-11 22:10:33 UTC (rev 299266)
+++ pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Commands.php 2010-05-11 22:52:45 UTC (rev 299267)
@@ -282,7 +282,7 @@
} else {
$this->help(array('command' => isset($args[0]) ? $args[0] : null));
}
- } catch (\PEAR2_Console_CommandLine_Exception $e) {
+ } catch (\pear2\Console\CommandLine\Exception $e) {
static::$commandParser->displayError($e->getMessage(), false);
static::$commandParser->displayUsage(false);
}
Modified: pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Renderer.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Renderer.php 2010-05-11 22:10:33 UTC (rev 299266)
+++ pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend/Renderer.php 2010-05-11 22:52:45 UTC (rev 299267)
@@ -34,7 +34,7 @@
* @since Class available since release 0.1.0
*/
namespace pear2\Pyrus\ScriptFrontend;
-class Renderer extends \PEAR2_Console_CommandLine_Renderer_Default
+class Renderer extends \pear2\Console\CommandLine\Renderer_Default
{
/**
* Return the command line usage message
Modified: pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend.php 2010-05-11 22:10:33 UTC (rev 299266)
+++ pear2/Pyrus/trunk/src/Pyrus/ScriptFrontend.php 2010-05-11 22:52:45 UTC (rev 299267)
@@ -24,11 +24,11 @@
* @link http://svn.php.net/viewvc/pear2/Pyrus/
*/
namespace pear2\Pyrus;
-class ScriptFrontend extends \PEAR2_Console_CommandLine
+class ScriptFrontend extends \pear2\Console\CommandLine
{
public function addCommand($name, $params = array(), $overrideOK = false)
{
- if ($name instanceof \PEAR2_Console_CommandLine_Command) {
+ if ($name instanceof \pear2\Console\CommandLine\Command) {
$testname = $name->name;
$command = $name;
} else {