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 4ff0c09 commit c17f5b9Copy full SHA for c17f5b9
bin/teleport
@@ -22,6 +22,7 @@ use Endroid\Teleporter\Command\TeleportCommand;
22
use Endroid\Teleporter\Teleporter;
23
24
$console = new Application('Endroid Teleporter');
25
-$console->addCommand(new TeleportCommand(new Teleporter()));
+$command = new TeleportCommand(new Teleporter());
26
+method_exists($console, 'addCommand') ? $console->addCommand($command) : $console->add($command);
27
$console->setDefaultCommand('endroid:teleport', true);
28
$console->run();
0 commit comments