-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Order] ShipmentProcessor renaming #4315
[Order] ShipmentProcessor renaming #4315
Conversation
b098b8d
to
fccb000
Compare
@@ -68,7 +68,7 @@ public function __construct(OrderShipmentFactoryInterface $shipmentFactory, Ship | |||
*/ | |||
public function processOrderShipments(GenericEvent $event) | |||
{ | |||
$this->shipmentFactory->createForOrder( | |||
$this->shipmentFactory->processOrderShipment( | |||
$this->getOrder($event) |
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 will fit one line :)
$this->shouldImplement(ShipmentProcessorInterface::class); | ||
} | ||
|
||
function it_creates_a_single_shipment_and_assigns_all_unit_units_to_it( |
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.
...all_unit_units... ?
2277298
to
5815dee
Compare
5815dee
to
a9279c3
Compare
👍 |
[Order] ShipmentProcessor renaming
Thanks Łukasz! |
Hi, For consistency, just need to rename the parameter too. <parameter key="sylius.order_processing.shipment_factory.class">Sylius\Component\Core\OrderProcessing\OrderShipmentProcessor</parameter> into <parameter key="sylius.order_processing.shipment_processor.class">Sylius\Component\Core\OrderProcessing\OrderShipmentProcessor</parameter> |
@Niiko good catch. I have missed it totally. |
…essor [Order] ShipmentProcessor renaming
OrderShipmentFactory is not a factory for sure. I'v renamed it to ShipmentProcessor because of lack of better name. Any suggestion are welcome.
Update: Name has been changed to OrderShipmentProcessor