public function extractNamespace($name, $limit = null)
    {
        $parts = explode(':', $name);
        array_pop($parts);

        return implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
    }
public function extractNamespace($name, $limit = null)
    {
        $parts = explode(':', $name);
        array_pop($parts);

        return implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
    }
public function extractNamespace ( $ name , $ limit = null ) { $ parts = explode ( ':' , $ name ) ; array_pop ( $ parts ) ; return implode ( ':' , null === $ limit ? $ parts : \ array_slice ( $ parts , 0 , $ limit ) ) ; }
Returns the namespace part of the command name.

This method is not part of public API and should not be used directly.

@param string $name  The full name of the command
@param string $limit The maximum number of parts of the namespace

@return string The namespace of the command
Returns the namespace part of the command name .