@@ -21,8 +21,8 @@ |
||
21 | 21 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
22 | 22 | use Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface; |
23 | 23 | use Sylius\Component\Core\Repository\PaymentRepositoryInterface; |
24 | -use Symfony\Component\Messenger\Handler\MessageHandlerInterface; |
|
25 | 24 | use Sylius\Component\Payment\Model\PaymentInterface; |
25 | +use Symfony\Component\Messenger\Handler\MessageHandlerInterface; |
|
26 | 26 | use Webmozart\Assert\Assert; |
27 | 27 | |
28 | 28 | /** @experimental */ |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use Doctrine\ORM\EntityManager; |
17 | 17 | use Doctrine\ORM\Mapping; |
18 | -use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; |
|
19 | 18 | use SyliusLabs\AssociationHydrator\AssociationHydrator; |
19 | +use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository; |
|
20 | 20 | |
21 | 21 | class AttributeRepository extends EntityRepository |
22 | 22 | { |
@@ -16,16 +16,16 @@ |
||
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\OrderBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository; |
20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
21 | 22 | use Sylius\Component\Core\Model\CustomerInterface; |
22 | 23 | use Sylius\Component\Core\Model\OrderInterface; |
23 | -use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
|
24 | 24 | use Sylius\Component\Core\Model\PromotionCouponInterface; |
25 | 25 | use Sylius\Component\Core\OrderCheckoutStates; |
26 | 26 | use Sylius\Component\Core\OrderPaymentStates; |
27 | 27 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
28 | -use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
28 | +use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
|
29 | 29 | |
30 | 30 | class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface |
31 | 31 | { |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | use Doctrine\ORM\EntityManager; |
17 | 17 | use Doctrine\ORM\Mapping; |
18 | -use Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductOptionRepository as BaseProductOptionRepository; |
|
19 | 18 | use SyliusLabs\AssociationHydrator\AssociationHydrator; |
19 | +use Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductOptionRepository as BaseProductOptionRepository; |
|
20 | 20 | |
21 | 21 | class ProductOptionRepository extends BaseProductOptionRepository |
22 | 22 | { |
@@ -15,10 +15,10 @@ |
||
15 | 15 | |
16 | 16 | use Doctrine\ORM\EntityManager; |
17 | 17 | use Doctrine\ORM\Mapping; |
18 | +use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
18 | 19 | use Sylius\Bundle\PromotionBundle\Doctrine\ORM\PromotionRepository as BasePromotionRepository; |
19 | 20 | use Sylius\Component\Channel\Model\ChannelInterface; |
20 | 21 | use Sylius\Component\Core\Repository\PromotionRepositoryInterface; |
21 | -use SyliusLabs\AssociationHydrator\AssociationHydrator; |
|
22 | 22 | |
23 | 23 | class PromotionRepository extends BasePromotionRepository implements PromotionRepositoryInterface |
24 | 24 | { |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface OrderEmailManagerInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function sendConfirmationEmail(OrderInterface $order): void; |
21 | 24 | } |
@@ -18,8 +18,8 @@ |
||
18 | 18 | use Sylius\Component\Core\Model\CustomerInterface; |
19 | 19 | use Sylius\Component\Core\Model\OrderInterface; |
20 | 20 | use Sylius\Component\Core\Test\Services\EmailChecker; |
21 | -use Symfony\Component\Filesystem\Filesystem; |
|
22 | 21 | use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; |
22 | +use Symfony\Component\Filesystem\Filesystem; |
|
23 | 23 | use Symfony\Contracts\Translation\TranslatorInterface; |
24 | 24 | |
25 | 25 | final class OrderEmailManagerTest extends KernelTestCase |
@@ -15,6 +15,7 @@ discard block |
||
15 | 15 | use Payum\Bundle\PayumBundle\PayumBundle; |
16 | 16 | use Sonata\BlockBundle\SonataBlockBundle; |
17 | 17 | use Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle; |
18 | +use SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle; |
|
18 | 19 | use Sylius\Bundle\AddressingBundle\SyliusAddressingBundle; |
19 | 20 | use Sylius\Bundle\AttributeBundle\SyliusAttributeBundle; |
20 | 21 | use Sylius\Bundle\ChannelBundle\SyliusChannelBundle; |
@@ -40,7 +41,6 @@ discard block |
||
40 | 41 | use Sylius\Bundle\ThemeBundle\SyliusThemeBundle; |
41 | 42 | use Sylius\Bundle\UiBundle\SyliusUiBundle; |
42 | 43 | use Sylius\Bundle\UserBundle\SyliusUserBundle; |
43 | -use SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle; |
|
44 | 44 | use Symfony\Bundle\FrameworkBundle\FrameworkBundle; |
45 | 45 | use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; |
46 | 46 | use Symfony\Bundle\SecurityBundle\SecurityBundle; |
@@ -53,6 +53,9 @@ |
||
53 | 53 | return $this->file; |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file |
|
58 | + */ |
|
56 | 59 | public function setFile(?\SplFileInfo $file): void |
57 | 60 | { |
58 | 61 | $this->file = $file; |