Conversation
📝 WalkthroughWalkthroughThis pull request migrates the Sylius ShippingBundle dependency injection configuration from XML to PHP. The bundle extension now loads PHP config files (replacing XmlFileLoader with PhpFileLoader) and XML service files were removed and replaced by corresponding PHP service configuration files. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
7daa536 to
44a0fbf
Compare
| use Sylius\Bundle\ShippingBundle\Doctrine\ORM\ShippingMethodRepository; | ||
|
|
||
| return static function (ContainerConfigurator $container) { | ||
| $services = $container->services(); |
There was a problem hiding this comment.
| $services = $container->services(); |
|
|
||
| return static function (ContainerConfigurator $container) { | ||
| $services = $container->services(); | ||
| $parameters = $container->parameters(); |
There was a problem hiding this comment.
| $parameters = $container->parameters(); |
|
|
||
| return static function (ContainerConfigurator $container) { | ||
| $services = $container->services(); | ||
| $parameters = $container->parameters(); |
There was a problem hiding this comment.
| $parameters = $container->parameters(); |
| $services = $container->services(); | ||
| $parameters = $container->parameters(); | ||
| $container->import('services/**.php'); |
There was a problem hiding this comment.
| $services = $container->services(); | |
| $parameters = $container->parameters(); | |
| $container->import('services/**.php'); | |
| $container->import('services/**.php'); | |
| $parameters = $container->parameters(); | |
| $services = $container->services(); |
| $services->set('sylius.registry.shipping_methods_resolver', PrioritizedServiceRegistry::class) | ||
| ->args([ | ||
| '%sylius.shipping_methods_resolver.interface%', | ||
| 'Shipping methods resolver', | ||
| ]); |
There was a problem hiding this comment.
| $services->set('sylius.registry.shipping_methods_resolver', PrioritizedServiceRegistry::class) | |
| ->args([ | |
| '%sylius.shipping_methods_resolver.interface%', | |
| 'Shipping methods resolver', | |
| ]); |
this is duplicated in registry.php 🤔
44a0fbf to
d86526e
Compare
Summary by CodeRabbit
Refactor
New Features