-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Move logic to a trait #44
base: master
Are you sure you want to change the base?
Conversation
So the idea would be that you can add this trait in the Kernel of a Sulu project and benefit from the heavy-lifting done by this bridge, right ? Seems fine to me, PHPCS is failing but not sure about this warning to be honest. Maybe this should also be documented in the README here ? Or even become the recommended way of using the bridge the default Symfony kernel too ? No strong opinion on this TBH 🙂 |
Yes. Correct.
I dont know of a better name.
Im not sure either. Users may still extend the |
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.
Sounds good to me too, makes sense! I wouldn't make this the recommended default for now but it could be an option eventually.
As for the PHPCS warning, yeah I agree this is annoying here. BrefKernelTrait
sounds good to me. Do you know if/how we could ignore that rule here? (I'd be fine with that)
I need the job do in abstract BrefKernel, but I use custom kernel on my project, so I can't extend it. |
Sure, we can implement this if there's a need for it. What's your current use case for this ? |
I work on a project which manage REST APIs from php-fpm and also deployed on lambda triggered by EventBridge. I understand it can be a bad practice, but we don't want to change this. |
Just an update here, I'm 👍 to merge that PR (needs a rebase) or another that is up to date, if anyone wants to tackle that. |
This PR is for allow support for using a non-standard Kernel, ie Sulu is using their own SuluKernel (example).