public function Application::extractNamespace in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::extractNamespace()
Returns the namespace part of the command name.
This method is not part of public API and should not be used directly.
Parameters
string $name The full name of the command:
string $limit The maximum number of parts of the namespace:
Return value
string The namespace of the command
1 call to Application::extractNamespace()
- Application::all in vendor/
symfony/ console/ Application.php - Gets the commands (registered in the given namespace if provided).
File
- vendor/
symfony/ console/ Application.php, line 998
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
public function extractNamespace($name, $limit = null) {
$parts = explode(':', $name);
array_pop($parts);
return implode(':', null === $limit ? $parts : array_slice($parts, 0, $limit));
}