@@ -6,10 +6,10 @@ |
||
6 | 6 | use Page\Admin\FileManagePage; |
7 | 7 | use Page\Admin\LayoutEditPage; |
8 | 8 | use Page\Admin\LayoutManagePage; |
9 | -use Page\Admin\NewsManagePage; |
|
10 | 9 | use Page\Admin\NewsEditPage; |
11 | -use Page\Admin\PageManagePage; |
|
10 | +use Page\Admin\NewsManagePage; |
|
12 | 11 | use Page\Admin\PageEditPage; |
12 | +use Page\Admin\PageManagePage; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @group admin |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | use Codeception\Util\Fixtures; |
4 | 4 | use Page\Front\CartPage; |
5 | +use Page\Front\CustomerAddressAddPage; |
|
6 | +use Page\Front\MultipleShippingPage; |
|
5 | 7 | use Page\Front\ProductDetailPage; |
6 | 8 | use Page\Front\ShippingEditPage; |
7 | 9 | use Page\Front\ShoppingCompletePage; |
8 | 10 | use Page\Front\ShoppingConfirmPage; |
9 | 11 | use Page\Front\ShoppingLoginPage; |
10 | 12 | use Page\Front\ShoppingPage; |
11 | -use Page\Front\MultipleShippingPage; |
|
12 | -use Page\Front\CustomerAddressAddPage; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * @group front |
@@ -14,22 +14,22 @@ |
||
14 | 14 | namespace Eccube\Controller\Admin\Content; |
15 | 15 | |
16 | 16 | use Eccube\Controller\AbstractController; |
17 | +use Eccube\Util\FilesystemUtil; |
|
18 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
17 | 19 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
18 | 20 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
19 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
21 | +use Symfony\Component\Filesystem\Exception\IOException; |
|
20 | 22 | use Symfony\Component\Filesystem\Filesystem; |
21 | 23 | use Symfony\Component\Finder\Finder; |
22 | 24 | use Symfony\Component\Form\Extension\Core\Type\FileType; |
23 | 25 | use Symfony\Component\Form\Extension\Core\Type\FormType; |
24 | 26 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
25 | 27 | use Symfony\Component\HttpFoundation\BinaryFileResponse; |
28 | +use Symfony\Component\HttpFoundation\File\Exception\FileException; |
|
26 | 29 | use Symfony\Component\HttpFoundation\Request; |
27 | 30 | use Symfony\Component\HttpFoundation\ResponseHeaderBag; |
28 | 31 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
29 | -use Symfony\Component\HttpFoundation\File\Exception\FileException; |
|
30 | 32 | use Symfony\Component\Validator\Constraints as Assert; |
31 | -use Eccube\Util\FilesystemUtil; |
|
32 | -use Symfony\Component\Filesystem\Exception\IOException; |
|
33 | 33 | |
34 | 34 | class FileController extends AbstractController |
35 | 35 | { |
@@ -17,7 +17,14 @@ discard block |
||
17 | 17 | use Eccube\Common\Constant; |
18 | 18 | use Eccube\Controller\AbstractController; |
19 | 19 | use Eccube\Entity\BaseInfo; |
20 | +use Eccube\Entity\ExportCsvRow; |
|
20 | 21 | use Eccube\Entity\Master\CsvType; |
22 | +use Eccube\Entity\Master\ProductStatus; |
|
23 | +use Eccube\Entity\Product; |
|
24 | +use Eccube\Entity\ProductCategory; |
|
25 | +use Eccube\Entity\ProductClass; |
|
26 | +use Eccube\Entity\ProductImage; |
|
27 | +use Eccube\Entity\ProductStock; |
|
21 | 28 | use Eccube\Entity\ProductTag; |
22 | 29 | use Eccube\Event\EccubeEvents; |
23 | 30 | use Eccube\Event\EventArgs; |
@@ -32,28 +39,21 @@ discard block |
||
32 | 39 | use Eccube\Repository\TagRepository; |
33 | 40 | use Eccube\Repository\TaxRuleRepository; |
34 | 41 | use Eccube\Service\CsvExportService; |
42 | +use Eccube\Util\FormUtil; |
|
35 | 43 | use Knp\Component\Pager\Paginator; |
36 | 44 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
37 | 45 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
38 | 46 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
39 | 47 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
40 | -use Eccube\Util\FormUtil; |
|
41 | 48 | use Symfony\Component\Filesystem\Filesystem; |
42 | 49 | use Symfony\Component\HttpFoundation\File\File; |
43 | 50 | use Symfony\Component\HttpFoundation\JsonResponse; |
51 | +use Symfony\Component\HttpFoundation\RedirectResponse; |
|
44 | 52 | use Symfony\Component\HttpFoundation\Request; |
45 | 53 | use Symfony\Component\HttpFoundation\StreamedResponse; |
46 | 54 | use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
47 | 55 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
48 | 56 | use Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException; |
49 | -use Eccube\Entity\Product; |
|
50 | -use Eccube\Entity\ProductClass; |
|
51 | -use Eccube\Entity\Master\ProductStatus; |
|
52 | -use Eccube\Entity\ProductStock; |
|
53 | -use Eccube\Entity\ProductImage; |
|
54 | -use Eccube\Entity\ProductCategory; |
|
55 | -use Eccube\Entity\ExportCsvRow; |
|
56 | -use Symfony\Component\HttpFoundation\RedirectResponse; |
|
57 | 57 | |
58 | 58 | class ProductController extends AbstractController |
59 | 59 | { |
@@ -26,11 +26,11 @@ |
||
26 | 26 | use Eccube\Repository\Master\OrderItemTypeRepository; |
27 | 27 | use Eccube\Repository\Master\PrefRepository; |
28 | 28 | use Eccube\Repository\OrderRepository; |
29 | +use Eccube\Service\CartService; |
|
30 | +use Eccube\Service\OrderHelper; |
|
29 | 31 | use Eccube\Service\PurchaseFlow\PurchaseContext; |
30 | 32 | use Eccube\Service\PurchaseFlow\PurchaseFlow; |
31 | 33 | use Eccube\Service\ShoppingService; |
32 | -use Eccube\Service\CartService; |
|
33 | -use Eccube\Service\OrderHelper; |
|
34 | 34 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
35 | 35 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
36 | 36 | use Symfony\Component\Form\Extension\Core\Type\CollectionType; |
@@ -13,6 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | namespace Eccube\Service; |
15 | 15 | |
16 | +use Doctrine\ORM\EntityManagerInterface; |
|
16 | 17 | use Doctrine\ORM\UnitOfWork; |
17 | 18 | use Eccube\Entity\Cart; |
18 | 19 | use Eccube\Entity\CartItem; |
@@ -20,15 +21,14 @@ discard block |
||
20 | 21 | use Eccube\Entity\ItemHolderInterface; |
21 | 22 | use Eccube\Entity\ProductClass; |
22 | 23 | use Eccube\Repository\CartRepository; |
23 | -use Eccube\Repository\ProductClassRepository; |
|
24 | 24 | use Eccube\Repository\OrderRepository; |
25 | +use Eccube\Repository\ProductClassRepository; |
|
25 | 26 | use Eccube\Service\Cart\CartItemAllocator; |
26 | 27 | use Eccube\Service\Cart\CartItemComparator; |
27 | 28 | use Eccube\Util\StringUtil; |
28 | 29 | use Symfony\Component\HttpFoundation\Session\SessionInterface; |
29 | 30 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
30 | 31 | use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; |
31 | -use Doctrine\ORM\EntityManagerInterface; |
|
32 | 32 | |
33 | 33 | class CartService |
34 | 34 | { |
@@ -16,7 +16,10 @@ discard block |
||
16 | 16 | use Doctrine\Common\Collections\ArrayCollection; |
17 | 17 | use Doctrine\Common\Util\ClassUtils; |
18 | 18 | use Doctrine\ORM\EntityManagerInterface; |
19 | +use Doctrine\ORM\QueryBuilder; |
|
19 | 20 | use Eccube\Common\EccubeConfig; |
21 | +use Eccube\Entity\Csv; |
|
22 | +use Eccube\Entity\Master\CsvType; |
|
20 | 23 | use Eccube\Form\Type\Admin\SearchProductType; |
21 | 24 | use Eccube\Form\Type\Admin\SearchShippingType; |
22 | 25 | use Eccube\Repository\CsvRepository; |
@@ -29,9 +32,6 @@ discard block |
||
29 | 32 | use Eccube\Util\FormUtil; |
30 | 33 | use Symfony\Component\Form\FormFactoryInterface; |
31 | 34 | use Symfony\Component\HttpFoundation\Request; |
32 | -use Doctrine\ORM\QueryBuilder; |
|
33 | -use Eccube\Entity\Master\CsvType; |
|
34 | -use Eccube\Entity\Csv; |
|
35 | 35 | |
36 | 36 | class CsvExportService |
37 | 37 | { |