这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

ConsoleMiddleware

Choose a tag to compare

@basuke basuke released this 23 Apr 07:24
· 7 commits to master since this release

Added console middleware for input and output interface from Symfony/Console. Output is an instance for SymfonyStyle.

$app->task(function ($context) {
    /** @var \Symfony\Component\Console\Style\SymfonyStyle $output */
    $output = $this->output;

    $output->title("Hello world");
});