@@ -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; |
@@ -12,9 +12,6 @@ |
||
12 | 12 | namespace Sylius\Bundle\TaxonomyBundle\DependencyInjection; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
15 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
|
16 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceToHiddenIdentifierType; |
|
17 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceToIdentifierType; |
|
18 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
19 | 16 | use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonTranslationType; |
20 | 17 | use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonType; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $loader->load('services.xml'); |
33 | 33 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | foreach ($resources as $subjectName => $subjectConfig) { |
57 | 57 | foreach ($subjectConfig as $resourceName => $resourceConfig) { |
58 | 58 | if (is_array($resourceConfig)) { |
59 | - $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig; |
|
59 | + $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | } |
@@ -26,10 +26,14 @@ |
||
26 | 26 | */ |
27 | 27 | public function checkValidationMessageFor($element, $message); |
28 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
29 | 32 | public function reset(); |
30 | 33 | |
31 | 34 | /** |
32 | 35 | * @param string $email |
36 | + * @return void |
|
33 | 37 | */ |
34 | 38 | public function specifyEmail($email); |
35 | 39 | } |
@@ -27,6 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param string $value |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setValue($value); |
32 | 33 | } |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | ) { |
369 | 369 | $customer = $user->getCustomer(); |
370 | 370 | for ($i = 0; $i < $numberOfOrders; $i++) { |
371 | - $order = $this->createOrder($customer, '#00000'.$i); |
|
371 | + $order = $this->createOrder($customer, '#00000' . $i); |
|
372 | 372 | $this->checkoutUsing($order, $shippingMethod, clone $address, $paymentMethod); |
373 | 373 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
374 | 374 | |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | $total = $this->getPriceFromString($total); |
416 | 416 | |
417 | 417 | for ($i = 0; $i < $numberOfOrders; $i++) { |
418 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid()); |
|
418 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid()); |
|
419 | 419 | $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders. |
420 | 420 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
421 | 421 | |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | $total = $this->getPriceFromString($total); |
446 | 446 | |
447 | 447 | for ($i = 0; $i < $numberOfOrders; $i++) { |
448 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first()); |
|
448 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first()); |
|
449 | 449 | $order->setState(OrderInterface::STATE_NEW); |
450 | 450 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
451 | 451 | |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | $customer = $this->customerFactory->createNew(); |
622 | 622 | $customer->setEmail(sprintf('john%[email protected]', uniqid())); |
623 | 623 | $customer->setFirstname('John'); |
624 | - $customer->setLastname('Doe'.$i); |
|
624 | + $customer->setLastname('Doe' . $i); |
|
625 | 625 | |
626 | 626 | $customers[] = $customer; |
627 | 627 |
@@ -14,31 +14,31 @@ |
||
14 | 14 | use Behat\Behat\Context\Context; |
15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
16 | 16 | use SM\Factory\FactoryInterface as StateMachineFactoryInterface; |
17 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
17 | 18 | use Sylius\Component\Core\Currency\CurrencyStorageInterface; |
19 | +use Sylius\Component\Core\Model\AddressInterface; |
|
18 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
19 | 21 | use Sylius\Component\Core\Model\ChannelPricingInterface; |
20 | -use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
21 | -use Sylius\Component\Core\OrderCheckoutTransitions; |
|
22 | -use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
23 | -use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
24 | -use Sylius\Component\Core\Model\AddressInterface; |
|
25 | 22 | use Sylius\Component\Core\Model\OrderInterface; |
26 | 23 | use Sylius\Component\Core\Model\OrderItemInterface; |
27 | 24 | use Sylius\Component\Core\Model\ProductInterface; |
28 | 25 | use Sylius\Component\Core\Model\ProductVariantInterface; |
26 | +use Sylius\Component\Core\Model\PromotionCouponInterface; |
|
29 | 27 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
28 | +use Sylius\Component\Core\OrderCheckoutTransitions; |
|
30 | 29 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
31 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
30 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
31 | +use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
32 | 32 | use Sylius\Component\Order\OrderTransitions; |
33 | +use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
33 | 34 | use Sylius\Component\Payment\Model\PaymentInterface; |
34 | 35 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
35 | 36 | use Sylius\Component\Payment\PaymentTransitions; |
37 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
36 | 38 | use Sylius\Component\Resource\Factory\FactoryInterface; |
37 | 39 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
38 | 40 | use Sylius\Component\Shipping\ShipmentTransitions; |
39 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
40 | 41 | use Sylius\Component\User\Model\UserInterface; |
41 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @author Łukasz Chruściel <[email protected]> |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
15 | 15 | use Sylius\Bundle\UserBundle\Controller\UserController; |
16 | -use Sylius\Bundle\UserBundle\Form\Type\UserType; |
|
17 | 16 | use Sylius\Component\Resource\Factory\Factory; |
18 | 17 | use Sylius\Component\User\Model\User; |
19 | 18 | use Sylius\Component\User\Model\UserInterface; |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Sylius\Bundle\UserBundle\Form\Type; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
15 | -use Sylius\Component\Resource\Metadata\MetadataInterface; |
|
16 | 15 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
17 | 16 | use Symfony\Component\Form\Extension\Core\Type\EmailType; |
18 | 17 | use Symfony\Component\Form\Extension\Core\Type\PasswordType; |
@@ -12,17 +12,14 @@ |
||
12 | 12 | namespace Sylius\Bundle\CustomerBundle\DependencyInjection; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\CustomerBundle\Form\Type\CustomerGroupType; |
15 | +use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
15 | 16 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
16 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
17 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
18 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
|
19 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerProfileType; |
|
20 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
21 | -use Sylius\Component\Customer\Model\CustomerGroup; |
|
22 | -use Sylius\Component\Resource\Factory\Factory; |
|
23 | 18 | use Sylius\Component\Customer\Model\Customer; |
24 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
19 | +use Sylius\Component\Customer\Model\CustomerGroup; |
|
25 | 20 | use Sylius\Component\Customer\Model\CustomerGroupInterface; |
21 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
22 | +use Sylius\Component\Resource\Factory\Factory; |
|
26 | 23 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
27 | 24 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
28 | 25 | use Symfony\Component\Config\Definition\ConfigurationInterface; |