@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | )); |
| 62 | 62 | |
| 63 | 63 | $message = \Swift_Message::newInstance() |
| 64 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認') |
|
| 64 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録のご確認') |
|
| 65 | 65 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 66 | 66 | ->setTo(array($Customer->getEmail())) |
| 67 | 67 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | )); |
| 103 | 103 | |
| 104 | 104 | $message = \Swift_Message::newInstance() |
| 105 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録が完了しました。') |
|
| 105 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録が完了しました。') |
|
| 106 | 106 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 107 | 107 | ->setTo(array($Customer->getEmail())) |
| 108 | 108 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | )); |
| 145 | 145 | |
| 146 | 146 | $message = \Swift_Message::newInstance() |
| 147 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 退会手続きのご完了') |
|
| 147 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 退会手続きのご完了') |
|
| 148 | 148 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 149 | 149 | ->setTo(array($email)) |
| 150 | 150 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | // 問い合わせ者にメール送信 |
| 189 | 189 | $message = \Swift_Message::newInstance() |
| 190 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] お問い合わせを受け付けました。') |
|
| 190 | + ->setSubject('['.$this->BaseInfo->getShopName().'] お問い合わせを受け付けました。') |
|
| 191 | 191 | ->setFrom(array($this->BaseInfo->getEmail02() => $this->BaseInfo->getShopName())) |
| 192 | 192 | ->setTo(array($formData['email'])) |
| 193 | 193 | ->setBcc($this->BaseInfo->getEmail02()) |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | )); |
| 245 | 245 | |
| 246 | 246 | $message = \Swift_Message::newInstance() |
| 247 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $MailTemplate->getSubject()) |
|
| 247 | + ->setSubject('['.$this->BaseInfo->getShopName().'] '.$MailTemplate->getSubject()) |
|
| 248 | 248 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 249 | 249 | ->setTo(array($Order->getEmail())) |
| 250 | 250 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | )); |
| 289 | 289 | |
| 290 | 290 | $message = \Swift_Message::newInstance() |
| 291 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認') |
|
| 291 | + ->setSubject('['.$this->BaseInfo->getShopName().'] 会員登録のご確認') |
|
| 292 | 292 | ->setFrom(array($this->BaseInfo->getEmail03() => $this->BaseInfo->getShopName())) |
| 293 | 293 | ->setTo(array($Customer->getEmail())) |
| 294 | 294 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | )); |
| 333 | 333 | |
| 334 | 334 | $message = \Swift_Message::newInstance() |
| 335 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $formData['subject']) |
|
| 335 | + ->setSubject('['.$this->BaseInfo->getShopName().'] '.$formData['subject']) |
|
| 336 | 336 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 337 | 337 | ->setTo(array($Order->getEmail())) |
| 338 | 338 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | )); |
| 374 | 374 | |
| 375 | 375 | $message = \Swift_Message::newInstance() |
| 376 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のご確認') |
|
| 376 | + ->setSubject('['.$this->BaseInfo->getShopName().'] パスワード変更のご確認') |
|
| 377 | 377 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 378 | 378 | ->setTo(array($Customer->getEmail())) |
| 379 | 379 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | )); |
| 415 | 415 | |
| 416 | 416 | $message = \Swift_Message::newInstance() |
| 417 | - ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のお知らせ') |
|
| 417 | + ->setSubject('['.$this->BaseInfo->getShopName().'] パスワード変更のお知らせ') |
|
| 418 | 418 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
| 419 | 419 | ->setTo(array($Customer->getEmail())) |
| 420 | 420 | ->setBcc($this->BaseInfo->getEmail01()) |
@@ -7,25 +7,18 @@ discard block |
||
| 7 | 7 | use Eccube\Annotation\Component; |
| 8 | 8 | use Eccube\Annotation\Inject; |
| 9 | 9 | use Eccube\Application; |
| 10 | -use Eccube\Common\Constant; |
|
| 11 | -use Eccube\Controller\AbstractController; |
|
| 12 | -use Eccube\Entity\Master\CsvType; |
|
| 13 | 10 | use Eccube\Entity\Shipping; |
| 14 | 11 | use Eccube\Event\EccubeEvents; |
| 15 | 12 | use Eccube\Event\EventArgs; |
| 16 | -use Eccube\Form\Type\AddCartType; |
|
| 17 | 13 | use Eccube\Form\Type\Admin\SearchCustomerType; |
| 18 | -use Eccube\Form\Type\Admin\SearchOrderType; |
|
| 19 | 14 | use Eccube\Form\Type\Admin\SearchProductType; |
| 20 | 15 | use Eccube\Form\Type\Admin\ShipmentItemType; |
| 21 | 16 | use Eccube\Form\Type\Admin\ShippingType; |
| 22 | 17 | use Eccube\Repository\CategoryRepository; |
| 23 | 18 | use Eccube\Repository\DeliveryRepository; |
| 24 | 19 | use Eccube\Repository\ShipmentItemRepository; |
| 25 | - |
|
| 26 | 20 | use Eccube\Repository\ShippingRepository; |
| 27 | 21 | use Eccube\Service\TaxRuleService; |
| 28 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache; |
|
| 29 | 22 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 30 | 23 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; |
| 31 | 24 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
@@ -34,7 +27,6 @@ discard block |
||
| 34 | 27 | use Symfony\Component\Form\FormFactory; |
| 35 | 28 | use Symfony\Component\HttpFoundation\Request; |
| 36 | 29 | use Symfony\Component\HttpFoundation\Session\Session; |
| 37 | -use Symfony\Component\HttpFoundation\StreamedResponse; |
|
| 38 | 30 | use Symfony\Component\Serializer\Serializer; |
| 39 | 31 | |
| 40 | 32 | /** |
@@ -38,7 +38,6 @@ |
||
| 38 | 38 | use Eccube\Form\Type\Master\ProductListMaxType; |
| 39 | 39 | use Eccube\Form\Type\Master\ProductListOrderByType; |
| 40 | 40 | use Eccube\Form\Type\SearchProductType; |
| 41 | -use Eccube\Repository\BaseInfoRepository; |
|
| 42 | 41 | use Eccube\Repository\CustomerFavoriteProductRepository; |
| 43 | 42 | use Eccube\Repository\ProductRepository; |
| 44 | 43 | use Eccube\Service\CartService; |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | /** |
| 253 | 253 | * 複数配送オプション有効時の画面制御を行う. |
| 254 | 254 | */ |
| 255 | - $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 255 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 256 | 256 | |
| 257 | 257 | if ($this->BaseInfo->getOptionMultipleShipping() != Constant::ENABLED) { |
| 258 | 258 | return; |
@@ -262,17 +262,16 @@ discard block |
||
| 262 | 262 | $orderDetails = &$data['OrderDetails']; |
| 263 | 263 | |
| 264 | 264 | // 数量0フィルター |
| 265 | - $quantityFilter = function ($v) { |
|
| 265 | + $quantityFilter = function($v) { |
|
| 266 | 266 | return !(isset($v['quantity']) && preg_match('/^0+$/', trim($v['quantity']))); |
| 267 | 267 | }; |
| 268 | 268 | |
| 269 | 269 | // $shippings = &$data['Shippings']; |
| 270 | 270 | |
| 271 | 271 | // 数量を抽出 |
| 272 | - $getQuantity = function ($v) { |
|
| 272 | + $getQuantity = function($v) { |
|
| 273 | 273 | return (isset($v['quantity']) && preg_match('/^\d+$/', trim($v['quantity']))) ? |
| 274 | - trim($v['quantity']) : |
|
| 275 | - 0; |
|
| 274 | + trim($v['quantity']) : 0; |
|
| 276 | 275 | }; |
| 277 | 276 | |
| 278 | 277 | // foreach ($shippings as &$shipping) { |
@@ -289,7 +288,7 @@ discard block |
||
| 289 | 288 | $orderDetail['quantity'] = 0; |
| 290 | 289 | |
| 291 | 290 | // 受注詳細と同じ商品規格のみ抽出 |
| 292 | - $productClassFilter = function ($v) use ($orderDetail) { |
|
| 291 | + $productClassFilter = function($v) use ($orderDetail) { |
|
| 293 | 292 | return $orderDetail['ProductClass'] === $v['ProductClass']; |
| 294 | 293 | }; |
| 295 | 294 | |
@@ -298,10 +297,9 @@ discard block |
||
| 298 | 297 | if (!empty($shipping['ShipmentItems'])) { |
| 299 | 298 | |
| 300 | 299 | // 同じ商品規格の受注詳細の価格を適用 |
| 301 | - $applyPrice = function (&$v) use ($orderDetail) { |
|
| 300 | + $applyPrice = function(&$v) use ($orderDetail) { |
|
| 302 | 301 | $v['price'] = ($v['ProductClass'] === $orderDetail['ProductClass']) ? |
| 303 | - $orderDetail['price'] : |
|
| 304 | - $v['price']; |
|
| 302 | + $orderDetail['price'] : $v['price']; |
|
| 305 | 303 | }; |
| 306 | 304 | array_walk($shipping['ShipmentItems'], $applyPrice); |
| 307 | 305 | |
@@ -330,7 +328,7 @@ discard block |
||
| 330 | 328 | // } |
| 331 | 329 | // }); |
| 332 | 330 | // 選択された支払い方法の名称をエンティティにコピーする |
| 333 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 331 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 334 | 332 | $Order = $event->getData(); |
| 335 | 333 | $Payment = $Order->getPayment(); |
| 336 | 334 | if (!is_null($Payment)) { |
@@ -338,7 +336,7 @@ discard block |
||
| 338 | 336 | } |
| 339 | 337 | }); |
| 340 | 338 | // 会員受注の場合、会員の性別/職業/誕生日をエンティティにコピーする |
| 341 | - $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 339 | + $builder->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 342 | 340 | $Order = $event->getData(); |
| 343 | 341 | $Customer = $Order->getCustomer(); |
| 344 | 342 | if (!is_null($Customer)) { |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | 'prototype' => true, |
| 200 | 200 | )) |
| 201 | 201 | |
| 202 | - ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 202 | + ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 203 | 203 | if ($this->BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) { |
| 204 | 204 | $form = $event->getForm(); |
| 205 | 205 | $form->add('ShipmentItems', CollectionType::class, array( |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | )); |
| 211 | 211 | } |
| 212 | 212 | }) |
| 213 | - ->addEventListener(FormEvents::POST_SET_DATA, function (FormEvent $event) { |
|
| 213 | + ->addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { |
|
| 214 | 214 | /** @var \Eccube\Entity\Shipping $data */ |
| 215 | 215 | $data = $event->getData(); |
| 216 | 216 | /** @var \Symfony\Component\Form\Form $form */ |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | 'choice_label' => 'delivery_time', |
| 230 | 230 | 'placeholder' => '指定なし', |
| 231 | 231 | 'required' => false, |
| 232 | - 'query_builder' => function (EntityRepository $er) use($Delivery) { |
|
| 232 | + 'query_builder' => function(EntityRepository $er) use($Delivery) { |
|
| 233 | 233 | return $er->createQueryBuilder('dt') |
| 234 | 234 | ->where('dt.Delivery = :Delivery') |
| 235 | 235 | ->setParameter('Delivery', $Delivery); |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | )); |
| 238 | 238 | |
| 239 | 239 | }) |
| 240 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
| 240 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) { |
|
| 241 | 241 | $data = $event->getData(); |
| 242 | 242 | $form = $event->getForm(); |
| 243 | 243 | if (!$data) { |
@@ -257,14 +257,14 @@ discard block |
||
| 257 | 257 | 'choice_label' => 'delivery_time', |
| 258 | 258 | 'placeholder' => '指定なし', |
| 259 | 259 | 'required' => false, |
| 260 | - 'query_builder' => function (EntityRepository $er) use($Delivery) { |
|
| 260 | + 'query_builder' => function(EntityRepository $er) use($Delivery) { |
|
| 261 | 261 | return $er->createQueryBuilder('dt') |
| 262 | 262 | ->where('dt.Delivery = :Delivery') |
| 263 | 263 | ->setParameter('Delivery', $Delivery); |
| 264 | 264 | }, |
| 265 | 265 | )); |
| 266 | 266 | }) |
| 267 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 267 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 268 | 268 | if ($this->BaseInfo->getOptionMultipleShipping() == Constant::ENABLED) { |
| 269 | 269 | $form = $event->getForm(); |
| 270 | 270 | $shipmentItems = $form['ShipmentItems']->getData(); |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | } |
| 276 | 276 | } |
| 277 | 277 | }) |
| 278 | - ->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) { |
|
| 278 | + ->addEventListener(FormEvents::POST_SUBMIT, function(FormEvent $event) { |
|
| 279 | 279 | $Shipping = $event->getData(); |
| 280 | 280 | $Delivery = $Shipping->getDelivery(); |
| 281 | 281 | $Shipping->setShippingDeliveryName($Delivery ? $Delivery : null); |
@@ -63,15 +63,15 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function register(Container $app) |
| 65 | 65 | { |
| 66 | - $app[BaseInfo::class] = function () use ($app) { |
|
| 66 | + $app[BaseInfo::class] = function() use ($app) { |
|
| 67 | 67 | return $app[BaseInfoRepository::class]->get(); |
| 68 | 68 | }; |
| 69 | 69 | |
| 70 | - $app['eccube.calculate.context'] = function () use ($app) { |
|
| 70 | + $app['eccube.calculate.context'] = function() use ($app) { |
|
| 71 | 71 | return new \Eccube\Service\Calculator\CalculateContext(); |
| 72 | 72 | }; |
| 73 | 73 | |
| 74 | - $app['eccube.calculate.strategies'] = function () use ($app) { |
|
| 74 | + $app['eccube.calculate.strategies'] = function() use ($app) { |
|
| 75 | 75 | $Collection = new \Eccube\Service\Calculator\CalculateStrategyCollection(); |
| 76 | 76 | $Collection->setApplication($app); |
| 77 | 77 | //$Collection->setOrder($Order); |
@@ -84,47 +84,47 @@ discard block |
||
| 84 | 84 | $Collection->add($app['eccube.calculate.strategy.calculate_total']); |
| 85 | 85 | return $Collection; |
| 86 | 86 | }; |
| 87 | - $app['eccube.calculate.strategy.shipping'] = function () use ($app) { |
|
| 87 | + $app['eccube.calculate.strategy.shipping'] = function() use ($app) { |
|
| 88 | 88 | $Strategy = new \Eccube\Service\Calculator\Strategy\ShippingStrategy(); |
| 89 | 89 | $Strategy->setApplication($app); |
| 90 | 90 | return $Strategy; |
| 91 | 91 | }; |
| 92 | - $app['eccube.calculate.strategy.charge'] = function () use ($app) { |
|
| 92 | + $app['eccube.calculate.strategy.charge'] = function() use ($app) { |
|
| 93 | 93 | $Strategy = new \Eccube\Service\Calculator\Strategy\ChargeStrategy(); |
| 94 | 94 | $Strategy->setApplication($app); |
| 95 | 95 | return $Strategy; |
| 96 | 96 | }; |
| 97 | 97 | |
| 98 | - $app['eccube.calculate.strategy.tax'] = function () use ($app) { |
|
| 98 | + $app['eccube.calculate.strategy.tax'] = function() use ($app) { |
|
| 99 | 99 | $Strategy = new \Eccube\Service\Calculator\Strategy\TaxStrategy(); |
| 100 | 100 | $Strategy->setApplication($app); |
| 101 | 101 | return $Strategy; |
| 102 | 102 | }; |
| 103 | 103 | |
| 104 | - $app['eccube.calculate.strategy.calculate_delivery_fee'] = function () use ($app) { |
|
| 104 | + $app['eccube.calculate.strategy.calculate_delivery_fee'] = function() use ($app) { |
|
| 105 | 105 | $Strategy = new \Eccube\Service\Calculator\Strategy\CalculateDeliveryFeeStrategy(); |
| 106 | 106 | $Strategy->setApplication($app); |
| 107 | 107 | return $Strategy; |
| 108 | 108 | }; |
| 109 | - $app['eccube.calculate.strategy.calculate_charge'] = function () use ($app) { |
|
| 109 | + $app['eccube.calculate.strategy.calculate_charge'] = function() use ($app) { |
|
| 110 | 110 | $Strategy = new \Eccube\Service\Calculator\Strategy\CalculateChargeStrategy(); |
| 111 | 111 | $Strategy->setApplication($app); |
| 112 | 112 | return $Strategy; |
| 113 | 113 | }; |
| 114 | - $app['eccube.calculate.strategy.calculate_total'] = function () use ($app) { |
|
| 114 | + $app['eccube.calculate.strategy.calculate_total'] = function() use ($app) { |
|
| 115 | 115 | $Strategy = new \Eccube\Service\Calculator\Strategy\CalculateTotalStrategy(); |
| 116 | 116 | $Strategy->setApplication($app); |
| 117 | 117 | return $Strategy; |
| 118 | 118 | }; |
| 119 | 119 | |
| 120 | - $app['payment.method'] = $app->protect(function ($clazz, $form) use ($app) { |
|
| 120 | + $app['payment.method'] = $app->protect(function($clazz, $form) use ($app) { |
|
| 121 | 121 | $PaymentMethod = new $clazz; |
| 122 | 122 | $PaymentMethod->setApplication($app); |
| 123 | 123 | $PaymentMethod->setFormType($form); |
| 124 | 124 | return $PaymentMethod; |
| 125 | 125 | }); |
| 126 | 126 | |
| 127 | - $app['payment.method.request'] = $app->protect(function ($clazz, $form, $request) use ($app) { |
|
| 127 | + $app['payment.method.request'] = $app->protect(function($clazz, $form, $request) use ($app) { |
|
| 128 | 128 | $PaymentMethod = new $clazz; |
| 129 | 129 | $PaymentMethod->setApplication($app); |
| 130 | 130 | $PaymentMethod->setFormType($form); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | return $PaymentMethod; |
| 133 | 133 | }); |
| 134 | 134 | |
| 135 | - $app['eccube.service.calculate'] = $app->protect(function ($Order, $Customer) use ($app) { |
|
| 135 | + $app['eccube.service.calculate'] = $app->protect(function($Order, $Customer) use ($app) { |
|
| 136 | 136 | $Service = new \Eccube\Service\CalculateService($Order, $Customer); |
| 137 | 137 | $Context = $app['eccube.calculate.context']; |
| 138 | 138 | $app['eccube.calculate.strategies']->setOrder($Order); |
@@ -143,24 +143,24 @@ discard block |
||
| 143 | 143 | return $Service; |
| 144 | 144 | }); |
| 145 | 145 | |
| 146 | - $app['eccube.service.payment'] = $app->protect(function ($clazz) use ($app) { |
|
| 146 | + $app['eccube.service.payment'] = $app->protect(function($clazz) use ($app) { |
|
| 147 | 147 | $Service = new $clazz($app['request_stack']); |
| 148 | 148 | |
| 149 | 149 | return $Service; |
| 150 | 150 | }); |
| 151 | 151 | |
| 152 | - $app['paginator'] = $app->protect(function () { |
|
| 152 | + $app['paginator'] = $app->protect(function() { |
|
| 153 | 153 | $paginator = new \Knp\Component\Pager\Paginator(); |
| 154 | 154 | $paginator->subscribe(new \Eccube\EventListener\PaginatorListener()); |
| 155 | 155 | |
| 156 | 156 | return $paginator; |
| 157 | 157 | }); |
| 158 | 158 | |
| 159 | - $app['request_scope'] = function () { |
|
| 159 | + $app['request_scope'] = function() { |
|
| 160 | 160 | return new ParameterBag(); |
| 161 | 161 | }; |
| 162 | 162 | // TODO 使用するか検討 |
| 163 | - $app['eccube.twig.node.hello'] = $app->protect(function ($node, $compiler) { |
|
| 163 | + $app['eccube.twig.node.hello'] = $app->protect(function($node, $compiler) { |
|
| 164 | 164 | $compiler |
| 165 | 165 | ->addDebugInfo($node) |
| 166 | 166 | ->write("echo 'Helloooooo ' . ") |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | }); |
| 172 | 172 | // TODO 使用するか検討 |
| 173 | - $app['eccube.twig.node.jiro'] = $app->protect(function ($node, $compiler) { |
|
| 173 | + $app['eccube.twig.node.jiro'] = $app->protect(function($node, $compiler) { |
|
| 174 | 174 | $compiler |
| 175 | 175 | ->addDebugInfo($node) |
| 176 | 176 | ->write("echo 'jirooooooo ' . ") |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | }); |
| 182 | 182 | |
| 183 | 183 | // TODO 使用するか検討 |
| 184 | - $app['eccube.twig.generic_node_names'] = function () use ($app) { |
|
| 184 | + $app['eccube.twig.generic_node_names'] = function() use ($app) { |
|
| 185 | 185 | return [ |
| 186 | 186 | 'hello', |
| 187 | 187 | 'jiro', |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | }; |
| 191 | 191 | |
| 192 | 192 | // TODO 使用するか検討 |
| 193 | - $app['twig_parsers'] = function () use ($app) { |
|
| 193 | + $app['twig_parsers'] = function() use ($app) { |
|
| 194 | 194 | $GenericTokenParsers = []; |
| 195 | 195 | foreach ($app['eccube.twig.generic_node_names'] as $tagName) { |
| 196 | 196 | $GenericTokenParsers[] = new \Eccube\Twig\Extension\GenericTokenParser($app, $tagName); |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | return $GenericTokenParsers; |
| 199 | 199 | }; |
| 200 | 200 | |
| 201 | - $app['eccube.twig.block.templates'] = function () { |
|
| 201 | + $app['eccube.twig.block.templates'] = function() { |
|
| 202 | 202 | $templates = new ArrayCollection(); |
| 203 | 203 | $templates[] = 'render_block.twig'; |
| 204 | 204 | |
@@ -206,17 +206,17 @@ discard block |
||
| 206 | 206 | }; |
| 207 | 207 | |
| 208 | 208 | $app['eccube.entity.event.dispatcher']->addEventListener(new \Acme\Entity\SoldOutEventListener()); |
| 209 | - $app['eccube.queries'] = function () { |
|
| 209 | + $app['eccube.queries'] = function() { |
|
| 210 | 210 | return new \Eccube\Doctrine\Query\Queries(); |
| 211 | 211 | }; |
| 212 | 212 | // TODO QueryCustomizerの追加方法は要検討 |
| 213 | 213 | $app['eccube.queries']->addCustomizer(new \Acme\Entity\AdminProductListCustomizer()); |
| 214 | 214 | |
| 215 | - $app['eccube.purchase.context'] = $app->protect(function (ItemHolderInterface $origin = null) { |
|
| 215 | + $app['eccube.purchase.context'] = $app->protect(function(ItemHolderInterface $origin = null) { |
|
| 216 | 216 | return new PurchaseContext($origin); |
| 217 | 217 | }); |
| 218 | 218 | |
| 219 | - $app['eccube.purchase.flow.cart.item_processors'] = function ($app) { |
|
| 219 | + $app['eccube.purchase.flow.cart.item_processors'] = function($app) { |
|
| 220 | 220 | $processors = new ArrayCollection(); |
| 221 | 221 | $processors->add(new DeletedProductValidator()); |
| 222 | 222 | $processors->add(new DisplayStatusValidator()); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | return $processors; |
| 227 | 227 | }; |
| 228 | 228 | |
| 229 | - $app['eccube.purchase.flow.cart.holder_processors'] = function ($app) { |
|
| 229 | + $app['eccube.purchase.flow.cart.holder_processors'] = function($app) { |
|
| 230 | 230 | $processors = new ArrayCollection(); |
| 231 | 231 | $processors->add(new PaymentProcessor($app[DeliveryRepository::class])); |
| 232 | 232 | $processors->add(new PaymentTotalLimitValidator($app['config']['max_total_fee'])); |
@@ -237,14 +237,14 @@ discard block |
||
| 237 | 237 | }; |
| 238 | 238 | |
| 239 | 239 | // example |
| 240 | - $app->extend('eccube.purchase.flow.cart.item_processors', function ($processors, $app) { |
|
| 240 | + $app->extend('eccube.purchase.flow.cart.item_processors', function($processors, $app) { |
|
| 241 | 241 | |
| 242 | 242 | $processors->add(new StockValidator()); |
| 243 | 243 | |
| 244 | 244 | return $processors; |
| 245 | 245 | }); |
| 246 | 246 | |
| 247 | - $app['eccube.purchase.flow.cart'] = function ($app) { |
|
| 247 | + $app['eccube.purchase.flow.cart'] = function($app) { |
|
| 248 | 248 | $flow = new PurchaseFlow(); |
| 249 | 249 | $flow->setItemProcessors($app['eccube.purchase.flow.cart.item_processors']); |
| 250 | 250 | $flow->setItemHolderProcessors($app['eccube.purchase.flow.cart.holder_processors']); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | return $flow; |
| 253 | 253 | }; |
| 254 | 254 | |
| 255 | - $app['eccube.purchase.flow.shopping'] = function () use ($app) { |
|
| 255 | + $app['eccube.purchase.flow.shopping'] = function() use ($app) { |
|
| 256 | 256 | $flow = new PurchaseFlow(); |
| 257 | 257 | $flow->addItemProcessor(new StockValidator()); |
| 258 | 258 | $flow->addItemProcessor(new DisplayStatusValidator()); |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | return $flow; |
| 263 | 263 | }; |
| 264 | 264 | |
| 265 | - $app['eccube.purchase.flow.order'] = function () use ($app) { |
|
| 265 | + $app['eccube.purchase.flow.order'] = function() use ($app) { |
|
| 266 | 266 | $flow = new PurchaseFlow(); |
| 267 | 267 | $flow->addItemProcessor(new StockValidator()); |
| 268 | 268 | $flow->addItemHolderProcessor(new PaymentTotalLimitValidator($app['config']['max_total_fee'])); |