@@ -16,12 +16,12 @@ |
||
| 16 | 16 | use Doctrine\ORM\EntityManager; |
| 17 | 17 | use Doctrine\ORM\Mapping; |
| 18 | 18 | use Doctrine\ORM\QueryBuilder; |
| 19 | +use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
| 19 | 20 | use Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductRepository as BaseProductRepository; |
| 20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
| 21 | 22 | use Sylius\Component\Core\Model\ProductInterface; |
| 22 | 23 | use Sylius\Component\Core\Model\TaxonInterface; |
| 23 | 24 | use Sylius\Component\Core\Repository\ProductRepositoryInterface; |
| 24 | -use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
| 25 | 25 | |
| 26 | 26 | class ProductRepository extends BaseProductRepository implements ProductRepositoryInterface |
| 27 | 27 | { |
@@ -18,13 +18,25 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface IndexPageInterface extends CrudIndexPageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function filterByTaxon(string $taxonName): void; |
| 22 | 25 | |
| 23 | 26 | public function hasProductAccessibleImage(string $productCode): bool; |
| 24 | 27 | |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 25 | 31 | public function showProductPage(string $productName): void; |
| 26 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 27 | 36 | public function chooseChannelFilter(string $channelName) :void; |
| 28 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 29 | 41 | public function filter(): void; |
| 30 | 42 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace Sylius\Behat\Page\Admin\Product; |
| 15 | 15 | |
| 16 | 16 | use Sylius\Behat\Page\Admin\Crud\IndexPageInterface as CrudIndexPageInterface; |
| 17 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
| 18 | 17 | |
| 19 | 18 | interface IndexPageInterface extends CrudIndexPageInterface |
| 20 | 19 | { |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | namespace Sylius\Bundle\AddressingBundle\Twig; |
| 15 | 15 | |
| 16 | 16 | use Sylius\Component\Addressing\Model\CountryInterface; |
| 17 | +use Symfony\Component\Intl\Countries; |
|
| 17 | 18 | use Symfony\Component\Intl\Exception\MissingResourceException; |
| 18 | 19 | use Twig\Extension\AbstractExtension; |
| 19 | 20 | use Twig\TwigFilter; |
| 20 | -use Symfony\Component\Intl\Countries; |
|
| 21 | 21 | |
| 22 | 22 | class CountryNameExtension extends AbstractExtension |
| 23 | 23 | { |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | |
| 107 | 107 | try { |
| 108 | 108 | return Languages::getName($language, $region); |
| 109 | - } catch(MissingResourceException $exception) { |
|
| 109 | + } catch (MissingResourceException $exception) { |
|
| 110 | 110 | return null; |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | { |
| 94 | 94 | try { |
| 95 | 95 | return Currencies::getName($code); |
| 96 | - } catch(MissingResourceException $exception) { |
|
| 96 | + } catch (MissingResourceException $exception) { |
|
| 97 | 97 | return null; |
| 98 | 98 | } |
| 99 | 99 | } |