File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
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 ();
You can’t perform that action at this time.
0 commit comments