Skip to content

Commit

Permalink
Merge pull request #37 from ehibes/master
Browse files Browse the repository at this point in the history
Compatibility with ResourceController
  • Loading branch information
bitbager committed Mar 8, 2023
2 parents 7cae1c8 + 4a80d6b commit ad4e0ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Controller/ShippingExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@

final class ShippingExportController extends ResourceController
{
/** @var ShippingExportRepositoryInterface */
protected $repository;

public function exportAllNewShipmentsAction(Request $request): RedirectResponse
{
$configuration = $this->requestConfigurationFactory->create($this->metadata, $request);

Assert::implementsInterface($this->repository, ShippingExportRepositoryInterface::class);
$shippingExports = $this->repository->findAllWithNewOrPendingState();

if (0 === count($shippingExports)) {
Expand Down

0 comments on commit ad4e0ce

Please sign in to comment.