-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add DI for Main controller, providers and processors #817
Conversation
2c28a3c
to
22ed7e1
Compare
src/Component/src/State/Processor/PostEventDispatcherProcessor.php
Outdated
Show resolved
Hide resolved
src/Component/src/State/Processor/PreEventDispatcherProcessor.php
Outdated
Show resolved
Hide resolved
src/Component/src/Symfony/Serializer/State/SerializeProcessor.php
Outdated
Show resolved
Hide resolved
Thx @Prometee That's a draft and I need that to debug ;) Of course I will remove these dump methods when it will be ready to review, but I think I will split that into few smaller PRs. |
|
||
public function __invoke(Request $request): Response | ||
{ | ||
$operation = $this->operationInitiator->initializeOperation($request); |
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.
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from #817 Commits ------- f0ec95e Fix serialize processor
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from #817 Commits ------- 2827646 Fix flash processor
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from #817 Commits ------- 460da65 Fix event dispatcher provider
10b6eb6
to
32a1fe7
Compare
Co-authored-by: Łukasz Chruściel <lchrusciel@gmail.com>
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
Co-authored-by: Dmitri Perunov <diimpp@gmail.com>
a8283e5
to
b6ed881
Compare
<imports> | ||
<import resource="state/processor.xml" /> | ||
<import resource="state/provider.xml" /> | ||
<import resource="state/**/*.xml" /> | ||
</imports> |
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.
This is a small thing, but I suggested removing these imports and add a generic one to services.xml
Thanks, Loïc! 🎉 |
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- f0ec95ecdabcabf7a1ee0b3e7792a4c381f18c3c Fix serialize processor
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- 282764628d4f295ede138d628d9150f3feeef036 Fix flash processor
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- 460da65f30972475a0188ecc388c85b37563b824 Fix event dispatcher provider
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- b6986256b184f895dc449c4af62cf646f64334b3 Add main controller 750260a524ab4d4cf123fbdf99de09b3c0340d3b Add PHPUnit tests 93857ed17b81dcddba560380aff9217657c0d765 Use a new Runtime exception
…r (loic425) This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- ca8c216629206c415c71d3c23096bc7351c2add7 Replace by into bulk aware processor
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | yes (but on non-released feature) | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- dc9eed2489588eaa2255c2201d95f2acd19e7b73 Fix respond processor
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 It was PreEventDispatcherProcessor but I think it's a better name now. I've decided to split https://github.com/Sylius/SyliusResourceBundle/blob/1.11/src/Component/src/State/Processor/EventDispatcherProcessor.php into two processors, so this one is the first part of the split. This processor allows user switching from resource controller to this new system easily. But we will be able to deprecate this event in the future. Commits ------- e87b8863a5870e40462cb3f77fcefb3a347d72c4 Dispatch pre write event processor 62fa18f5d5705399bada3e798f2852171ba1a3d7 Rename a test
This PR was merged into the 1.11 branch. Discussion ---------- | Q | A | --------------- | ----- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Related tickets | | License | MIT Extracted from Sylius/SyliusResourceBundle#817 Commits ------- 09320aa4d2928d1b40d825fba1cb194a424812ee Write processor
On browsing resources

On creating a new resource

On invalid creation

On deleting a single resource

On delete multiple resources
