@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
| 15 | 15 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
| 16 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 17 | 16 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
| 17 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 18 | 18 | use Symfony\Component\Form\FormBuilderInterface; |
| 19 | 19 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 20 | 20 | use Symfony\Component\Validator\Constraints\Valid; |
@@ -47,7 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
| 49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
| 50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
| 50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
| 51 | +// Validate the coupon if it was sent |
|
| 51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
| 52 | 53 | } |
| 53 | 54 | |
@@ -16,13 +16,13 @@ |
||
| 16 | 16 | use Sylius\Behat\NotificationType; |
| 17 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
| 18 | 18 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
| 19 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
| 20 | 21 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
| 21 | 22 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
| 22 | 23 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
| 23 | 24 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
| 24 | 25 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
| 25 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
| 26 | 26 | use Sylius\Behat\Page\SymfonyPageInterface; |
| 27 | 27 | use Sylius\Behat\Service\NotificationCheckerInterface; |
| 28 | 28 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
@@ -16,8 +16,8 @@ |
||
| 16 | 16 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
| 17 | 17 | use Sylius\Bundle\ReviewBundle\Form\Type\ReviewType; |
| 18 | 18 | use Sylius\Component\Resource\Factory\Factory; |
| 19 | -use Sylius\Component\Review\Model\ReviewerInterface; |
|
| 20 | 19 | use Sylius\Component\Review\Model\ReviewInterface; |
| 20 | +use Sylius\Component\Review\Model\ReviewerInterface; |
|
| 21 | 21 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
| 22 | 22 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
| 23 | 23 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | use Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface; |
| 28 | 28 | use Sylius\Bundle\ResourceBundle\Controller\ResourceDeleteHandlerInterface; |
| 29 | 29 | use Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface; |
| 30 | -use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
| 31 | 30 | use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface; |
| 31 | +use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface; |
|
| 32 | 32 | use Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface; |
| 33 | 33 | use Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface; |
| 34 | 34 | use Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface; |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace Sylius\Bundle\CoreBundle\Collector; |
| 15 | 15 | |
| 16 | 16 | use Sylius\Bundle\CoreBundle\Application\Kernel; |
| 17 | -use Sylius\Component\Channel\Context\ChannelNotFoundException; |
|
| 18 | 17 | use Sylius\Component\Core\Context\ShopperContextInterface; |
| 19 | 18 | use Sylius\Component\Core\Model\ChannelInterface; |
| 20 | 19 | use Sylius\Component\Currency\Context\CurrencyNotFoundException; |
@@ -15,7 +15,8 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function it_does_not_crash(): void |
| 17 | 17 | { |
| 18 | - new class() extends Bundle { |
|
| 18 | + new class() extends Bundle |
|
| 19 | + { |
|
| 19 | 20 | use SyliusPluginTrait; |
| 20 | 21 | }; |
| 21 | 22 | } |
@@ -19,9 +19,9 @@ |
||
| 19 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
| 20 | 20 | use Symfony\Component\Console\Question\Question; |
| 21 | 21 | use Symfony\Component\Console\Style\SymfonyStyle; |
| 22 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 22 | 23 | use Symfony\Component\Validator\Constraints\Email; |
| 23 | 24 | use Symfony\Component\Validator\Constraints\NotBlank; |
| 24 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 25 | 25 | use Webmozart\Assert\Assert; |
| 26 | 26 | |
| 27 | 27 | final class SetupCommand extends AbstractInstallCommand |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\GridBundle\Doctrine\ORM; |
| 15 | 15 | |
| 16 | -use Doctrine\ORM\Query\Expr\Comparison; |
|
| 17 | 16 | use Doctrine\ORM\QueryBuilder; |
| 17 | +use Doctrine\ORM\Query\Expr\Comparison; |
|
| 18 | 18 | use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
| 19 | 19 | |
| 20 | 20 | final class ExpressionBuilder implements ExpressionBuilderInterface |