first commit
This commit is contained in:
29
vendor/webman/console/src/Commands/ConnectionsCommand.php
vendored
Normal file
29
vendor/webman/console/src/Commands/ConnectionsCommand.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Webman\Console\Commands;
|
||||
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Webman\Console\Application;
|
||||
|
||||
class ConnectionsCommand extends Command
|
||||
{
|
||||
protected static $defaultName = 'connections';
|
||||
protected static $defaultDescription = 'Get worker connections.';
|
||||
|
||||
/**
|
||||
* @param InputInterface $input
|
||||
* @param OutputInterface $output
|
||||
* @return int
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
if (\class_exists(\Support\App::class)) {
|
||||
\Support\App::run();
|
||||
return self::SUCCESS;
|
||||
}
|
||||
Application::run();
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user