Application.php
private function extractAllNamespaces($name)
    {
        // -1 as third argument is needed to skip the command short name when exploding
        $parts = explode(':', $name, -1);
        $namespaces = array();

        foreach ($parts as $part) {
            if (count($namespaces)) {
                $namespaces[] = end($namespaces).':'.$part;
            } else {
                $namespaces[] = $part;
            }
        }

        return $namespaces;
    }
private function extractAllNamespaces($name)
    {
        // -1 as third argument is needed to skip the command short name when exploding
        $parts = explode(':', $name, -1);
        $namespaces = array();

        foreach ($parts as $part) {
            if (count($namespaces)) {
                $namespaces[] = end($namespaces).':'.$part;
            } else {
                $namespaces[] = $part;
            }
        }

        return $namespaces;
    }
private function extractAllNamespaces ( $ name ) { // -1 as third argument is needed to skip the command short name when exploding $ parts = explode ( ':' , $ name , - 1 ) ; $ namespaces = array ( ) ; foreach ( $ parts as $ part ) { if ( count ( $ namespaces ) ) { $ namespaces [ ] = end ( $ namespaces ) . ':' . $ part ; } else { $ namespaces [ ] = $ part ; } } return $ namespaces ; }
Returns all namespaces of the command name.

@param string $name The full name of the command

@return string[] The namespaces of the command
Returns all namespaces of the command name .