We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3751c94 commit 7f2155dCopy full SHA for 7f2155d
1 file changed
src/Config/RectorConfig.php
@@ -222,6 +222,15 @@ public function collector(string $collectorClass): void
222
$this->tag($collectorClass, Collector::class);
223
}
224
225
+ /**
226
+ * @param class-string<Command> $commandClass
227
+ */
228
+ public function command(string $commandClass): void
229
+ {
230
+ $this->singleton($commandClass);
231
+ $this->tag($commandClass, Command::class);
232
+ }
233
+
234
public function import(string $filePath): void
235
{
236
if (str_contains($filePath, '*')) {
0 commit comments