File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,17 @@ require RR_COMPOSER_INSTALL;
6868
6969$ app = new Symfony \Component \Console \Application ('RoadRunner CLI ' , Version::current ());
7070
71- $ app ->add (new GetBinaryCommand ());
72- $ app ->add (new VersionsCommand ());
73- $ app ->add (new DownloadProtocBinaryCommand ());
74- $ app ->add (new MakeConfigCommand ());
71+ if (method_exists ($ app , 'addCommand ' )) {
72+ $ app ->addCommand (new GetBinaryCommand ());
73+ $ app ->addCommand (new VersionsCommand ());
74+ $ app ->addCommand (new DownloadProtocBinaryCommand ());
75+ $ app ->addCommand (new MakeConfigCommand ());
76+ } else {
77+ // For Symfony 7.3 and lower
78+ $ app ->add (new GetBinaryCommand ());
79+ $ app ->add (new VersionsCommand ());
80+ $ app ->add (new DownloadProtocBinaryCommand ());
81+ $ app ->add (new MakeConfigCommand ());
82+ }
7583
7684$ app ->run ();
Original file line number Diff line number Diff line change 3434 "composer/semver" : " ^3.4" ,
3535 "spiral/roadrunner-worker" : " ^2 || ^3" ,
3636 "spiral/tokenizer" : " ^2.13 || ^3.15" ,
37- "symfony/console" : " ^5.3 || ^6.0 || ^7.0" ,
38- "symfony/http-client" : " ^4.4.51 || ^5.4.49 || ^6.4.17 || ^7.2" ,
39- "symfony/yaml" : " ^5.4.49 || ^6.4.17 || ^7.2"
37+ "symfony/console" : " ^5.3 || ^6.0 || ^7.0 || ^8.0 " ,
38+ "symfony/http-client" : " ^4.4.51 || ^5.4.49 || ^6.4.17 || ^7.2 || ^8.0 " ,
39+ "symfony/yaml" : " ^5.4.49 || ^6.4.17 || ^7.2 || ^8.0 "
4040 },
4141 "require-dev" : {
4242 "jetbrains/phpstorm-attributes" : " ^1.2" ,
You can’t perform that action at this time.
0 commit comments