Used by CommandCollection and CommandTask to scan the filesystem for command classes.
Scan the application for shells & commands.
Scan CakePHP internals for shells & commands.
Scan a directory for .php files and return the class names that should be within them.
Scan the named plugin for shells and commands
scanApp(): array
Scan the application for shells & commands.
arrayscanCore(): array
Scan CakePHP internals for shells & commands.
arrayscanDir(string $path, string $namespace, string $prefix, array<string> $hide): array
Scan a directory for .php files and return the class names that should be within them.
string $path The directory to read.
string $namespace The namespace the shells live in.
string $prefix The prefix to apply to commands for their full name.
array<string> $hide A list of command names to hide as they are internal commands.
arrayscanPlugin(string $plugin): array
Scan the named plugin for shells and commands
string $plugin The named plugin.
array
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Console.CommandScanner.html