sharedPointSaleBuilder = $this->loadService(SharedPointSaleBuilder::class); } public function createSharedPointSale(PointSale $pointSale, Producer $producerWithSharing) { $sharedPointSale = $this->sharedPointSaleBuilder->instanciateSharedPointSale($pointSale, $producerWithSharing); $this->sharedPointSaleBuilder->create($sharedPointSale); } }