function EventDispatcher::isCommandClass
Checks if string given references a command class
1 call to EventDispatcher::isCommandClass()
- EventDispatcher::doDispatch in vendor/
composer/ composer/ src/ Composer/ EventDispatcher/ EventDispatcher.php - Triggers the listeners of an event.
File
-
vendor/
composer/ composer/ src/ Composer/ EventDispatcher/ EventDispatcher.php, line 618
Class
- EventDispatcher
- The Event Dispatcher.
Namespace
Composer\EventDispatcherCode
protected function isCommandClass(string $callable) : bool {
return str_contains($callable, '\\') && !str_contains($callable, ' ') && str_ends_with($callable, 'Command');
}