File tree Expand file tree Collapse file tree
src/Console/CommandLoader Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525use Symfony \Component \Console \CommandLoader \ContainerCommandLoader ;
2626use Symfony \Component \Finder \Finder ;
2727
28+ /**
29+ * Responsible for dynamically discovering and loading Symfony Console commands
30+ * within the DevTools context. This class extends the ContainerCommandLoader
31+ * and integrates with a PSR-11 compatible container to lazily instantiate commands.
32+ *
33+ * The implementation MUST scan a predefined directory for PHP classes representing
34+ * console commands and SHALL only register classes that:
35+ * - Are instantiable
36+ * - Extend the Symfony\Component\Console\Command\Command base class
37+ * - Declare the Symfony\Component\Console\Attribute\AsCommand attribute
38+ *
39+ * The command name MUST be extracted from the AsCommand attribute metadata and
40+ * used as the key in the command map. Classes that do not meet these criteria
41+ * MUST NOT be included in the command map.
42+ */
2843final class DevToolsCommandLoader extends ContainerCommandLoader
2944{
3045 /**
You can’t perform that action at this time.
0 commit comments