-
Notifications
You must be signed in to change notification settings - Fork 39
Replacing rest routes with symfony routes #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.0
Are you sure you want to change the base?
Conversation
d402723 to
422298a
Compare
|
@alexander-schranz If I would fix the codestyle for the 8.3 pipeline it would break the 7.x releases and I don't want to mix in a PHP update with this. |
| } | ||
|
|
||
| /** @phpstan-ignore-next-line */ | ||
| $kernel = new Kernel($env, $debug, $suluContext); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unexpected change suluContext is written by the include file:
https://github.com/sulu/SuluCommunityBundle/blob/17e2867a4caae61a295d32811838de24a112c5a4/Tests/Application/bin/adminconsole
https://github.com/sulu/SuluCommunityBundle/blob/17e2867a4caae61a295d32811838de24a112c5a4/Tests/Application/bin/websiteconsole
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I ran php bin/console.php it didn't set it properly. I think we just need a default. Copied the fix from the core. :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to run the specific console the .php isnt here to be called directly like in other bundles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But falling back to the admin console like core sulu also does sounds reasonable I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we wanted no fallbacks in the test setups we wanted to have a clear diff between admin and console thats why no bin/console script exists in the bundles test setups ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only just a matter of time until they get merged so I've removed the changes for now. :)
422298a to
f6655d6
Compare
f6655d6 to
f39d6fa
Compare
What's in this PR?
Replacing rest routing with Symfony routing.
Other stuff needed to fix the pipeline:
Why?
It's not part of sulu anymore and will be removed in 3.0 anyways.