Skip to content
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

SW-613-exported-main-variant-config #233

Merged
merged 17 commits into from
Jan 17, 2022
Prev Previous commit
Next Next commit
Implementation
  • Loading branch information
zaifastafa committed Dec 21, 2021
commit 8bed4bcd46929cdfca83e63f0770fb4f53ae22d5
4 changes: 2 additions & 2 deletions src/Export/ProductService.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public function __construct(
) {
$this->container = $container;
$this->salesChannelContext = $salesChannelContext;
$this->config = $config;
$this->config = $config ?? $container->get(Config::class);
}

public static function getInstance(
ContainerInterface $container,
?SalesChannelContext $salesChannelContext,
?Config $config
?Config $config = null
): ProductService {
if ($container->has(self::CONTAINER_ID)) {
$productService = $container->get(self::CONTAINER_ID);
Expand Down