File tree Expand file tree Collapse file tree 9 files changed +18
-1
lines changed Expand file tree Collapse file tree 9 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 15
15
],
16
16
"require" : {
17
17
"php" : " ^8.1.0" ,
18
- "laravel/framework" : " ^10.10.1|^11.0" ,
19
18
"laminas/laminas-diactoros" : " ^3.0" ,
19
+ "laravel/framework" : " ^10.10.1|^11.0" ,
20
20
"laravel/serializable-closure" : " ^1.3.0" ,
21
21
"nesbot/carbon" : " ^2.66.0|^3.0" ,
22
+ "symfony/console" : " ^6.0|^7.0" ,
22
23
"symfony/psr-http-message-bridge" : " ^2.2.0|^6.4|^7.0"
23
24
},
24
25
"require-dev" : {
Original file line number Diff line number Diff line change 5
5
use Illuminate \Support \Facades \File ;
6
6
use Illuminate \Support \Str ;
7
7
use Laravel \Octane \Swoole \SwooleExtension ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
use Throwable ;
9
10
11
+ #[AsCommand(name: 'octane:install ' )]
10
12
class InstallCommand extends Command
11
13
{
12
14
use Concerns \InstallsFrankenPhpDependencies,
Original file line number Diff line number Diff line change 5
5
use Laravel \Octane \FrankenPhp \ServerProcessInspector as FrankenPhpServerProcessInspector ;
6
6
use Laravel \Octane \RoadRunner \ServerProcessInspector as RoadRunnerServerProcessInspector ;
7
7
use Laravel \Octane \Swoole \ServerProcessInspector as SwooleServerProcessInspector ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
10
+ #[AsCommand(name: 'octane:reload ' )]
9
11
class ReloadCommand extends Command
10
12
{
11
13
/**
Original file line number Diff line number Diff line change 2
2
3
3
namespace Laravel \Octane \Commands ;
4
4
5
+ use Symfony \Component \Console \Attribute \AsCommand ;
5
6
use Symfony \Component \Console \Command \SignalableCommandInterface ;
6
7
8
+ #[AsCommand(name: 'octane:start ' )]
7
9
class StartCommand extends Command implements SignalableCommandInterface
8
10
{
9
11
use Concerns \InteractsWithServers;
Original file line number Diff line number Diff line change 6
6
use InvalidArgumentException ;
7
7
use Laravel \Octane \FrankenPhp \ServerProcessInspector ;
8
8
use Laravel \Octane \FrankenPhp \ServerStateFile ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
use Symfony \Component \Console \Command \SignalableCommandInterface ;
10
11
use Symfony \Component \Process \Process ;
11
12
13
+ #[AsCommand(name: 'octane:frankenphp ' )]
12
14
class StartFrankenPhpCommand extends Command implements SignalableCommandInterface
13
15
{
14
16
use Concerns \InstallsFrankenPhpDependencies,
Original file line number Diff line number Diff line change 6
6
use InvalidArgumentException ;
7
7
use Laravel \Octane \RoadRunner \ServerProcessInspector ;
8
8
use Laravel \Octane \RoadRunner \ServerStateFile ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
use Symfony \Component \Console \Command \SignalableCommandInterface ;
10
11
use Symfony \Component \Process \PhpExecutableFinder ;
11
12
use Symfony \Component \Process \Process ;
12
13
14
+ #[AsCommand(name: 'octane:roadrunner ' )]
13
15
class StartRoadRunnerCommand extends Command implements SignalableCommandInterface
14
16
{
15
17
use Concerns \InstallsRoadRunnerDependencies,
Original file line number Diff line number Diff line change 6
6
use Laravel \Octane \Swoole \ServerProcessInspector ;
7
7
use Laravel \Octane \Swoole \ServerStateFile ;
8
8
use Laravel \Octane \Swoole \SwooleExtension ;
9
+ use Symfony \Component \Console \Attribute \AsCommand ;
9
10
use Symfony \Component \Console \Command \SignalableCommandInterface ;
10
11
use Symfony \Component \Process \PhpExecutableFinder ;
11
12
use Symfony \Component \Process \Process ;
12
13
14
+ #[AsCommand(name: 'octane:swoole ' )]
13
15
class StartSwooleCommand extends Command implements SignalableCommandInterface
14
16
{
15
17
use Concerns \InteractsWithEnvironmentVariables, Concerns \InteractsWithServers;
Original file line number Diff line number Diff line change 5
5
use Laravel \Octane \FrankenPhp \ServerProcessInspector as FrankenPhpServerProcessInspector ;
6
6
use Laravel \Octane \RoadRunner \ServerProcessInspector as RoadRunnerServerProcessInspector ;
7
7
use Laravel \Octane \Swoole \ServerProcessInspector as SwooleServerProcessInspector ;
8
+ use Symfony \Component \Console \Attribute \AsCommand ;
8
9
10
+ #[AsCommand(name: 'octane:status ' )]
9
11
class StatusCommand extends Command
10
12
{
11
13
/**
Original file line number Diff line number Diff line change 8
8
use Laravel \Octane \RoadRunner \ServerStateFile as RoadRunnerServerStateFile ;
9
9
use Laravel \Octane \Swoole \ServerProcessInspector as SwooleServerProcessInspector ;
10
10
use Laravel \Octane \Swoole \ServerStateFile as SwooleServerStateFile ;
11
+ use Symfony \Component \Console \Attribute \AsCommand ;
11
12
13
+ #[AsCommand(name: 'octane:stop ' )]
12
14
class StopCommand extends Command
13
15
{
14
16
/**
You can’t perform that action at this time.
0 commit comments