This commit is contained in:
2023-04-16 00:15:10 +08:00
parent 12ab8b5f88
commit a10d597e7e
2 changed files with 10 additions and 15 deletions
+2 -3
View File
@@ -50,7 +50,6 @@ class Main extends BaseMain
* @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws ConfigException
*/
public function init(): void
{
@@ -136,10 +135,10 @@ class Main extends BaseMain
private function argument($argv): array
{
$input = new ArgvInput($argv);
$this->container->setBindings(ArgvInput::class, $input);
$this->container->bind(ArgvInput::class, $input);
$output = new ConsoleOutput();
$this->container->setBindings(OutputInterface::class, $output);
$this->container->bind(OutputInterface::class, $output);
return [$input, $output];
}