Skip to content

Commit

Permalink
Merge pull request #274 from Triotech-fr/master
Browse files Browse the repository at this point in the history
Fixed ShowAvailableShippingMethodsAction constructor argument typehinting to use interfaces
  • Loading branch information
lchrusciel authored Jun 4, 2018
2 parents bc46d73 + 54e3658 commit 316f8e8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Sylius\Component\Core\Model\ShippingMethodInterface;
use Sylius\Component\Core\Repository\OrderRepositoryInterface;
use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface;
use Sylius\ShopApiPlugin\Factory\ShippingMethodViewFactory;
use Sylius\ShopApiPlugin\Factory\ShippingMethodViewFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

Expand All @@ -33,21 +33,21 @@ final class ShowAvailableShippingMethodsAction
private $shippingMethodsResolver;

/**
* @var ShippingMethodViewFactory
* @var ShippingMethodViewFactoryInterface
*/
private $shippingMethodViewFactory;

/**
* @param OrderRepositoryInterface $cartRepository
* @param ViewHandlerInterface $viewHandler
* @param ShippingMethodsResolverInterface $shippingMethodsResolver
* @param ShippingMethodViewFactory $shippingMethodViewFactory
* @param ShippingMethodViewFactoryInterface $shippingMethodViewFactory
*/
public function __construct(
OrderRepositoryInterface $cartRepository,
ViewHandlerInterface $viewHandler,
ShippingMethodsResolverInterface $shippingMethodsResolver,
ShippingMethodViewFactory $shippingMethodViewFactory
ShippingMethodViewFactoryInterface $shippingMethodViewFactory
) {
$this->cartRepository = $cartRepository;
$this->viewHandler = $viewHandler;
Expand Down

0 comments on commit 316f8e8

Please sign in to comment.