Changing how command names are parsed to allow multiple levels of namespaces
This commit is contained in:
parent
0c78e9f121
commit
20cc9b9669
|
@ -496,7 +496,7 @@ class Application
|
|||
{
|
||||
// namespace
|
||||
$namespace = '';
|
||||
if (false !== $pos = strpos($name, ':'))
|
||||
if (false !== $pos = strrpos($name, ':'))
|
||||
{
|
||||
$namespace = $this->findNamespace(substr($name, 0, $pos));
|
||||
$name = substr($name, $pos + 1);
|
||||
|
|
|
@ -282,7 +282,7 @@ class Command
|
|||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
if (false !== $pos = strpos($name, ':'))
|
||||
if (false !== $pos = strrpos($name, ':'))
|
||||
{
|
||||
$namespace = substr($name, 0, $pos);
|
||||
$name = substr($name, $pos + 1);
|
||||
|
|
Reference in New Issue