function Application::extractNamespace
Returns the namespace part of the command name.
This method is not part of public API and should not be used directly.
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 1179
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
public function extractNamespace(string $name, ?int $limit = null) : string {
$parts = explode(':', $name, -1);
return implode(':', null === $limit ? $parts : \array_slice($parts, 0, $limit));
}