@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | $this->register(new \Saxulum\Validator\Provider\SaxulumValidatorProvider()); |
171 | 171 | $this->register(new MobileDetectServiceProvider()); |
172 | 172 | |
173 | - $this->error(function (\Exception $e, Request $request, $code) { |
|
173 | + $this->error(function(\Exception $e, Request $request, $code) { |
|
174 | 174 | if ($this['debug']) { |
175 | 175 | return; |
176 | 176 | } |
@@ -276,14 +276,14 @@ discard block |
||
276 | 276 | return $router; |
277 | 277 | }); |
278 | 278 | |
279 | - $this['eccube.router.origin'] = function ($app) { |
|
279 | + $this['eccube.router.origin'] = function($app) { |
|
280 | 280 | $resource = __DIR__.'/Controller'; |
281 | 281 | $cachePrefix = 'Origin'; |
282 | 282 | |
283 | 283 | return $app['eccube.router']($resource, $cachePrefix); |
284 | 284 | }; |
285 | 285 | |
286 | - $this['eccube.routers.plugin'] = function ($app) { |
|
286 | + $this['eccube.routers.plugin'] = function($app) { |
|
287 | 287 | // TODO 有効なプラグインを対象とする必要がある. |
288 | 288 | $dirs = Finder::create() |
289 | 289 | ->in($app['config']['root_dir'].'/app/Plugin') |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | return $routers; |
301 | 301 | }; |
302 | 302 | |
303 | - $this['eccube.router.extend'] = function ($app) { |
|
303 | + $this['eccube.router.extend'] = function($app) { |
|
304 | 304 | // TODO ディレクトリ名は暫定 |
305 | 305 | $resource = $app['config']['root_dir'].'/app/Acme/Controller'; |
306 | 306 | $cachePrefix = 'Extend'; |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | return $router; |
311 | 311 | }; |
312 | 312 | |
313 | - $this->extend('request_matcher', function ($matcher, $app) { |
|
313 | + $this->extend('request_matcher', function($matcher, $app) { |
|
314 | 314 | $matchers = []; |
315 | 315 | $matchers[] = $app['eccube.router.extend']; |
316 | 316 | foreach ($app['eccube.routers.plugin'] as $router) { |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | return new ChainUrlMatcher($matchers, $app['request_context']); |
323 | 323 | }); |
324 | 324 | |
325 | - $this->extend('url_generator', function ($generator, $app) { |
|
325 | + $this->extend('url_generator', function($generator, $app) { |
|
326 | 326 | $generators = []; |
327 | 327 | $generators[] = $app['eccube.router.extend']; |
328 | 328 | foreach ($app['eccube.routers.plugin'] as $router) { |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | }); |
336 | 336 | |
337 | 337 | // Route CollectionにEC-CUBEで定義したルーティングを追加(debug tool barに出力するため) |
338 | - $this->extend('routes', function ($routes, $app) { |
|
338 | + $this->extend('routes', function($routes, $app) { |
|
339 | 339 | $routes->addCollection($app['eccube.router.extend']->getRouteCollection()); |
340 | 340 | foreach ($app['eccube.routers.plugin'] as $router) { |
341 | 341 | $routes->addCollection($router->getRouteCollection()); |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | 'translator.cache_dir' => $this['debug'] ? null : $this['config']['root_dir'].'/app/cache/translator', |
369 | 369 | 'locale_fallbacks' => ['ja', 'en'], |
370 | 370 | )); |
371 | - $this->extend('translator', function ($translator, \Silex\Application $app) { |
|
371 | + $this->extend('translator', function($translator, \Silex\Application $app) { |
|
372 | 372 | $translator->addLoader('yaml', new \Symfony\Component\Translation\Loader\YamlFileLoader()); |
373 | 373 | |
374 | 374 | $file = __DIR__.'/Resource/locale/validator.'.$app['locale'].'.yml'; |
@@ -415,14 +415,14 @@ discard block |
||
415 | 415 | $this->register(new \Silex\Provider\TwigServiceProvider(), array( |
416 | 416 | 'twig.form.templates' => array('Form/form_layout.twig'), |
417 | 417 | )); |
418 | - $this->extend('twig', function (\Twig_Environment $twig, \Silex\Application $app) { |
|
418 | + $this->extend('twig', function(\Twig_Environment $twig, \Silex\Application $app) { |
|
419 | 419 | $twig->addExtension(new \Eccube\Twig\Extension\EccubeExtension($app)); |
420 | 420 | $twig->addExtension(new \Twig_Extension_StringLoader()); |
421 | 421 | |
422 | 422 | return $twig; |
423 | 423 | }); |
424 | 424 | |
425 | - $this->before(function (Request $request, \Silex\Application $app) { |
|
425 | + $this->before(function(Request $request, \Silex\Application $app) { |
|
426 | 426 | $app['admin'] = $app['front'] = false; |
427 | 427 | $pathinfo = rawurldecode($request->getPathInfo()); |
428 | 428 | if (strpos($pathinfo, '/'.trim($app['config']['admin_route'], '/').'/') === 0) { |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | } |
439 | 439 | $paths[] = $app['config']['template_admin_realdir']; |
440 | 440 | $paths[] = __DIR__.'/../../app/Plugin'; |
441 | - $cacheDir = __DIR__.'/../../app/cache/twig/admin'; |
|
441 | + $cacheDir = __DIR__.'/../../app/cache/twig/admin'; |
|
442 | 442 | } else { |
443 | 443 | // モバイル端末時、smartphoneディレクトリを探索パスに追加する. |
444 | 444 | if ($app['mobile_detect.device_type'] == \Eccube\Entity\Master\DeviceType::DEVICE_TYPE_SP) { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | } |
454 | 454 | $paths[] = $app['config']['template_default_realdir']; |
455 | 455 | $paths[] = __DIR__.'/../../app/Plugin'; |
456 | - $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code']; |
|
456 | + $cacheDir = __DIR__.'/../../app/cache/twig/'.$app['config']['template_code']; |
|
457 | 457 | } |
458 | 458 | $app['twig']->setCache($app['debug'] ? null : $cacheDir); |
459 | 459 | $app['twig.loader']->addLoader(new \Twig_Loader_Filesystem($paths)); |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | }, self::EARLY_EVENT); |
472 | 472 | |
473 | 473 | // twigのグローバル変数を定義. |
474 | - $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function (\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) { |
|
474 | + $this->on(\Symfony\Component\HttpKernel\KernelEvents::CONTROLLER, function(\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event) { |
|
475 | 475 | // 未ログイン時にマイページや管理画面以下にアクセスするとSubRequestで実行されるため, |
476 | 476 | // $event->isMasterRequest()ではなく、グローバル変数が初期化済かどうかの判定を行う |
477 | 477 | if (isset($this['twig_global_initialized']) && $this['twig_global_initialized'] === true) { |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | // メール送信時の文字エンコード指定(デフォルトはUTF-8) |
558 | 558 | if (isset($this['config']['mail']['charset_iso_2022_jp']) && is_bool($this['config']['mail']['charset_iso_2022_jp'])) { |
559 | 559 | if ($this['config']['mail']['charset_iso_2022_jp'] === true) { |
560 | - \Swift::init(function () { |
|
560 | + \Swift::init(function() { |
|
561 | 561 | \Swift_DependencyContainer::getInstance() |
562 | 562 | ->register('mime.qpheaderencoder') |
563 | 563 | ->asAliasOf('mime.base64headerencoder'); |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | $this->register(new \Saxulum\DoctrineOrmManagerRegistry\Provider\DoctrineOrmManagerRegistryProvider()); |
593 | 593 | |
594 | 594 | $app = $this; |
595 | - $this->extend('db.event_manager', function ($evm) use ($app) { |
|
595 | + $this->extend('db.event_manager', function($evm) use ($app) { |
|
596 | 596 | $initSubscriber = new InitSubscriber($app); |
597 | 597 | $evm->addEventSubscriber($initSubscriber); |
598 | 598 | |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | |
688 | 688 | $this->extend( |
689 | 689 | 'orm.em.config', |
690 | - function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
690 | + function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
691 | 691 | |
692 | 692 | /** @var $chain \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */ |
693 | 693 | $chain = $config->getMetadataDriverImpl(); |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | } |
710 | 710 | ); |
711 | 711 | |
712 | - $this->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
712 | + $this->extend('orm.em', function(\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
713 | 713 | // save |
714 | 714 | $saveEventSubscriber = new \Eccube\Doctrine\EventSubscriber\SaveEventSubscriber($app); |
715 | 715 | $em->getEventManager()->addEventSubscriber($saveEventSubscriber); |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | // second level cacheの設定. |
733 | 733 | $this->extend( |
734 | 734 | 'orm.em.config', |
735 | - function (\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
735 | + function(\Doctrine\ORM\Configuration $config, \Silex\Application $app) { |
|
736 | 736 | $config->setSecondLevelCacheEnabled(); |
737 | 737 | $cacheConfig = $config->getSecondLevelCacheConfiguration(); |
738 | 738 | $regionConfig = $cacheConfig->getRegionsConfiguration(); |
@@ -821,31 +821,31 @@ discard block |
||
821 | 821 | array('^/mypage', 'ROLE_USER', $channel), |
822 | 822 | ); |
823 | 823 | |
824 | - $this['eccube.password_encoder'] = function ($app) { |
|
824 | + $this['eccube.password_encoder'] = function($app) { |
|
825 | 825 | return new \Eccube\Security\Core\Encoder\PasswordEncoder($app['config']); |
826 | 826 | }; |
827 | - $this['security.encoder_factory'] = function ($app) { |
|
827 | + $this['security.encoder_factory'] = function($app) { |
|
828 | 828 | return new \Symfony\Component\Security\Core\Encoder\EncoderFactory(array( |
829 | 829 | 'Eccube\Entity\Customer' => $app['eccube.password_encoder'], |
830 | 830 | 'Eccube\Entity\Member' => $app['eccube.password_encoder'], |
831 | 831 | )); |
832 | 832 | }; |
833 | - $this['eccube.event_listner.security'] = function ($app) { |
|
833 | + $this['eccube.event_listner.security'] = function($app) { |
|
834 | 834 | return new \Eccube\EventListener\SecurityEventListener($app['orm.em']); |
835 | 835 | }; |
836 | 836 | |
837 | 837 | // Voterの設定 |
838 | - $this['authority_voter'] = function ($app) { |
|
838 | + $this['authority_voter'] = function($app) { |
|
839 | 839 | return new \Eccube\Security\Voter\AuthorityVoter($app); |
840 | 840 | }; |
841 | 841 | |
842 | - $this->extend('security.voters', function ($voters, \Silex\Application $app) { |
|
842 | + $this->extend('security.voters', function($voters, \Silex\Application $app) { |
|
843 | 843 | $voters[] = $app['authority_voter']; |
844 | 844 | |
845 | 845 | return $voters; |
846 | 846 | }); |
847 | 847 | |
848 | - $this['security.access_manager'] = function ($app) { |
|
848 | + $this['security.access_manager'] = function($app) { |
|
849 | 849 | return new \Symfony\Component\Security\Core\Authorization\AccessDecisionManager($app['security.voters'], 'unanimous'); |
850 | 850 | }; |
851 | 851 | |
@@ -859,7 +859,7 @@ discard block |
||
859 | 859 | { |
860 | 860 | $config = $this['config']; |
861 | 861 | if (isset($config['trusted_proxies_connection_only']) && !empty($config['trusted_proxies_connection_only'])) { |
862 | - $this->on(KernelEvents::REQUEST, function (GetResponseEvent $event) use ($config) { |
|
862 | + $this->on(KernelEvents::REQUEST, function(GetResponseEvent $event) use ($config) { |
|
863 | 863 | // サブリクエストのREMOTE_ADDRも動的に設定を行う必要があるため、KernelEvents::REQUESTを使用する |
864 | 864 | Request::setTrustedProxies(array_merge(array($event->getRequest()->server->get('REMOTE_ADDR')), $config['trusted_proxies'])); |
865 | 865 | }, self::EARLY_EVENT); |
@@ -876,7 +876,7 @@ discard block |
||
876 | 876 | $this->register(new ServiceProvider\EccubePluginServiceProvider()); |
877 | 877 | |
878 | 878 | // TODO Acme\ServiceProvider の初期化はここで OK? |
879 | - if (array_key_exists('service',$this['config'])) { |
|
879 | + if (array_key_exists('service', $this['config'])) { |
|
880 | 880 | foreach ($this['config']['service'] as $service) { |
881 | 881 | $this->register(new $service); |
882 | 882 | } |
@@ -1032,7 +1032,7 @@ discard block |
||
1032 | 1032 | $app = $this; |
1033 | 1033 | |
1034 | 1034 | // Response Event(http cache対応、event実行は一番遅く設定) |
1035 | - $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function (\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) { |
|
1035 | + $this->on(\Symfony\Component\HttpKernel\KernelEvents::RESPONSE, function(\Symfony\Component\HttpKernel\Event\FilterResponseEvent $event) use ($app) { |
|
1036 | 1036 | |
1037 | 1037 | if (!$event->isMasterRequest()) { |
1038 | 1038 | return; |
@@ -113,13 +113,13 @@ |
||
113 | 113 | |
114 | 114 | $formTypes = array_filter( |
115 | 115 | $components, |
116 | - function ($component) { |
|
116 | + function($component) { |
|
117 | 117 | return get_class($component['anno']) === FormType::class; |
118 | 118 | } |
119 | 119 | ); |
120 | 120 | $formExtensions = array_filter( |
121 | 121 | $components, |
122 | - function ($component) { |
|
122 | + function($component) { |
|
123 | 123 | return get_class($component['anno']) === FormExtension::class; |
124 | 124 | } |
125 | 125 | ); |
@@ -197,7 +197,7 @@ |
||
197 | 197 | $this->appConfig['block_default_realdir'], |
198 | 198 | ); |
199 | 199 | foreach ($readPaths as $readPath) { |
200 | - $filePath = $readPath . '/' . $fileName . '.twig'; |
|
200 | + $filePath = $readPath.'/'.$fileName.'.twig'; |
|
201 | 201 | $fs = new Filesystem(); |
202 | 202 | if ($fs->exists($filePath)) { |
203 | 203 | return array( |
@@ -20,34 +20,34 @@ |
||
20 | 20 | |
21 | 21 | public function register(Container $app) |
22 | 22 | { |
23 | - $app['eccube.service.cart'] = function () use ($app) { |
|
23 | + $app['eccube.service.cart'] = function() use ($app) { |
|
24 | 24 | return $app[CartService::class]; |
25 | 25 | }; |
26 | - $app['eccube.service.order'] = function () use ($app) { |
|
26 | + $app['eccube.service.order'] = function() use ($app) { |
|
27 | 27 | return $app[OrderService::class]; |
28 | 28 | }; |
29 | - $app['eccube.service.tax_rule'] = function () use ($app) { |
|
29 | + $app['eccube.service.tax_rule'] = function() use ($app) { |
|
30 | 30 | return $app[TaxRuleService::class]; |
31 | 31 | }; |
32 | - $app['eccube.service.plugin'] = function () use ($app) { |
|
32 | + $app['eccube.service.plugin'] = function() use ($app) { |
|
33 | 33 | return $app[PluginService::class]; |
34 | 34 | }; |
35 | - $app['eccube.service.mail'] = function () use ($app) { |
|
35 | + $app['eccube.service.mail'] = function() use ($app) { |
|
36 | 36 | return $app[MailService::class]; |
37 | 37 | }; |
38 | - $app['eccube.helper.order'] = function ($app) { |
|
38 | + $app['eccube.helper.order'] = function($app) { |
|
39 | 39 | return $app[OrderHelper::class]; |
40 | 40 | }; |
41 | - $app['eccube.service.csv.export'] = function () use ($app) { |
|
41 | + $app['eccube.service.csv.export'] = function() use ($app) { |
|
42 | 42 | return $app[CsvExportService::class]; |
43 | 43 | }; |
44 | - $app['eccube.service.shopping'] = function () use ($app) { |
|
44 | + $app['eccube.service.shopping'] = function() use ($app) { |
|
45 | 45 | return $app[ShoppingService::class]; |
46 | 46 | }; |
47 | - $app['eccube.service.payment'] = function () use ($app) { |
|
47 | + $app['eccube.service.payment'] = function() use ($app) { |
|
48 | 48 | return $app[PaymentService::class]; |
49 | 49 | }; |
50 | - $app['eccube.service.system'] = function () use ($app) { |
|
50 | + $app['eccube.service.system'] = function() use ($app) { |
|
51 | 51 | return $app[SystemService::class]; |
52 | 52 | }; |
53 | 53 |
@@ -62,11 +62,11 @@ discard block |
||
62 | 62 | */ |
63 | 63 | public function register(Container $app) |
64 | 64 | { |
65 | - $app['eccube.calculate.context'] = function () use ($app) { |
|
65 | + $app['eccube.calculate.context'] = function() use ($app) { |
|
66 | 66 | return new \Eccube\Service\Calculator\CalculateContext(); |
67 | 67 | }; |
68 | 68 | |
69 | - $app['eccube.calculate.strategies'] = function () use ($app) { |
|
69 | + $app['eccube.calculate.strategies'] = function() use ($app) { |
|
70 | 70 | $Collection = new \Eccube\Service\Calculator\CalculateStrategyCollection(); |
71 | 71 | $Collection->setApplication($app); |
72 | 72 | //$Collection->setOrder($Order); |
@@ -79,47 +79,47 @@ discard block |
||
79 | 79 | $Collection->add($app['eccube.calculate.strategy.calculate_total']); |
80 | 80 | return $Collection; |
81 | 81 | }; |
82 | - $app['eccube.calculate.strategy.shipping'] = function () use ($app) { |
|
82 | + $app['eccube.calculate.strategy.shipping'] = function() use ($app) { |
|
83 | 83 | $Strategy = new \Eccube\Service\Calculator\Strategy\ShippingStrategy(); |
84 | 84 | $Strategy->setApplication($app); |
85 | 85 | return $Strategy; |
86 | 86 | }; |
87 | - $app['eccube.calculate.strategy.charge'] = function () use ($app) { |
|
87 | + $app['eccube.calculate.strategy.charge'] = function() use ($app) { |
|
88 | 88 | $Strategy = new \Eccube\Service\Calculator\Strategy\ChargeStrategy(); |
89 | 89 | $Strategy->setApplication($app); |
90 | 90 | return $Strategy; |
91 | 91 | }; |
92 | 92 | |
93 | - $app['eccube.calculate.strategy.tax'] = function () use ($app) { |
|
93 | + $app['eccube.calculate.strategy.tax'] = function() use ($app) { |
|
94 | 94 | $Strategy = new \Eccube\Service\Calculator\Strategy\TaxStrategy(); |
95 | 95 | $Strategy->setApplication($app); |
96 | 96 | return $Strategy; |
97 | 97 | }; |
98 | 98 | |
99 | - $app['eccube.calculate.strategy.calculate_delivery_fee'] = function () use ($app) { |
|
99 | + $app['eccube.calculate.strategy.calculate_delivery_fee'] = function() use ($app) { |
|
100 | 100 | $Strategy = new \Eccube\Service\Calculator\Strategy\CalculateDeliveryFeeStrategy(); |
101 | 101 | $Strategy->setApplication($app); |
102 | 102 | return $Strategy; |
103 | 103 | }; |
104 | - $app['eccube.calculate.strategy.calculate_charge'] = function () use ($app) { |
|
104 | + $app['eccube.calculate.strategy.calculate_charge'] = function() use ($app) { |
|
105 | 105 | $Strategy = new \Eccube\Service\Calculator\Strategy\CalculateChargeStrategy(); |
106 | 106 | $Strategy->setApplication($app); |
107 | 107 | return $Strategy; |
108 | 108 | }; |
109 | - $app['eccube.calculate.strategy.calculate_total'] = function () use ($app) { |
|
109 | + $app['eccube.calculate.strategy.calculate_total'] = function() use ($app) { |
|
110 | 110 | $Strategy = new \Eccube\Service\Calculator\Strategy\CalculateTotalStrategy(); |
111 | 111 | $Strategy->setApplication($app); |
112 | 112 | return $Strategy; |
113 | 113 | }; |
114 | 114 | |
115 | - $app['payment.method'] = $app->protect(function ($clazz, $form) use ($app) { |
|
115 | + $app['payment.method'] = $app->protect(function($clazz, $form) use ($app) { |
|
116 | 116 | $PaymentMethod = new $clazz; |
117 | 117 | $PaymentMethod->setApplication($app); |
118 | 118 | $PaymentMethod->setFormType($form); |
119 | 119 | return $PaymentMethod; |
120 | 120 | }); |
121 | 121 | |
122 | - $app['payment.method.request'] = $app->protect(function ($clazz, $form, $request) use ($app) { |
|
122 | + $app['payment.method.request'] = $app->protect(function($clazz, $form, $request) use ($app) { |
|
123 | 123 | $PaymentMethod = new $clazz; |
124 | 124 | $PaymentMethod->setApplication($app); |
125 | 125 | $PaymentMethod->setFormType($form); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return $PaymentMethod; |
128 | 128 | }); |
129 | 129 | |
130 | - $app['eccube.service.calculate'] = $app->protect(function ($Order, $Customer) use ($app) { |
|
130 | + $app['eccube.service.calculate'] = $app->protect(function($Order, $Customer) use ($app) { |
|
131 | 131 | $Service = new \Eccube\Service\CalculateService($Order, $Customer); |
132 | 132 | $Context = $app['eccube.calculate.context']; |
133 | 133 | $app['eccube.calculate.strategies']->setOrder($Order); |
@@ -138,24 +138,24 @@ discard block |
||
138 | 138 | return $Service; |
139 | 139 | }); |
140 | 140 | |
141 | - $app['eccube.service.payment'] = $app->protect(function ($clazz) use ($app) { |
|
141 | + $app['eccube.service.payment'] = $app->protect(function($clazz) use ($app) { |
|
142 | 142 | $Service = new $clazz($app['request_stack']); |
143 | 143 | |
144 | 144 | return $Service; |
145 | 145 | }); |
146 | 146 | |
147 | - $app['paginator'] = $app->protect(function () { |
|
147 | + $app['paginator'] = $app->protect(function() { |
|
148 | 148 | $paginator = new \Knp\Component\Pager\Paginator(); |
149 | 149 | $paginator->subscribe(new \Eccube\EventListener\PaginatorListener()); |
150 | 150 | |
151 | 151 | return $paginator; |
152 | 152 | }); |
153 | 153 | |
154 | - $app['request_scope'] = function () { |
|
154 | + $app['request_scope'] = function() { |
|
155 | 155 | return new ParameterBag(); |
156 | 156 | }; |
157 | 157 | // TODO 使用するか検討 |
158 | - $app['eccube.twig.node.hello'] = $app->protect(function ($node, $compiler) { |
|
158 | + $app['eccube.twig.node.hello'] = $app->protect(function($node, $compiler) { |
|
159 | 159 | $compiler |
160 | 160 | ->addDebugInfo($node) |
161 | 161 | ->write("echo 'Helloooooo ' . ") |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | }); |
167 | 167 | // TODO 使用するか検討 |
168 | - $app['eccube.twig.node.jiro'] = $app->protect(function ($node, $compiler) { |
|
168 | + $app['eccube.twig.node.jiro'] = $app->protect(function($node, $compiler) { |
|
169 | 169 | $compiler |
170 | 170 | ->addDebugInfo($node) |
171 | 171 | ->write("echo 'jirooooooo ' . ") |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | }); |
177 | 177 | |
178 | 178 | // TODO 使用するか検討 |
179 | - $app['eccube.twig.generic_node_names'] = function () use ($app) { |
|
179 | + $app['eccube.twig.generic_node_names'] = function() use ($app) { |
|
180 | 180 | return [ |
181 | 181 | 'hello', |
182 | 182 | 'jiro', |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | }; |
186 | 186 | |
187 | 187 | // TODO 使用するか検討 |
188 | - $app['twig_parsers'] = function () use ($app) { |
|
188 | + $app['twig_parsers'] = function() use ($app) { |
|
189 | 189 | $GenericTokenParsers = []; |
190 | 190 | foreach ($app['eccube.twig.generic_node_names'] as $tagName) { |
191 | 191 | $GenericTokenParsers[] = new \Eccube\Twig\Extension\GenericTokenParser($app, $tagName); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | return $GenericTokenParsers; |
194 | 194 | }; |
195 | 195 | |
196 | - $app['eccube.twig.block.templates'] = function () { |
|
196 | + $app['eccube.twig.block.templates'] = function() { |
|
197 | 197 | $templates = new ArrayCollection(); |
198 | 198 | $templates[] = 'render_block.twig'; |
199 | 199 | |
@@ -201,17 +201,17 @@ discard block |
||
201 | 201 | }; |
202 | 202 | |
203 | 203 | $app['eccube.entity.event.dispatcher']->addEventListener(new \Acme\Entity\SoldOutEventListener()); |
204 | - $app['eccube.queries'] = function () { |
|
204 | + $app['eccube.queries'] = function() { |
|
205 | 205 | return new \Eccube\Doctrine\Query\Queries(); |
206 | 206 | }; |
207 | 207 | // TODO QueryCustomizerの追加方法は要検討 |
208 | 208 | $app['eccube.queries']->addCustomizer(new \Acme\Entity\AdminProductListCustomizer()); |
209 | 209 | |
210 | - $app['eccube.purchase.context'] = $app->protect(function (ItemHolderInterface $origin = null) { |
|
210 | + $app['eccube.purchase.context'] = $app->protect(function(ItemHolderInterface $origin = null) { |
|
211 | 211 | return new PurchaseContext($origin); |
212 | 212 | }); |
213 | 213 | |
214 | - $app['eccube.purchase.flow.cart.item_processors'] = function ($app) { |
|
214 | + $app['eccube.purchase.flow.cart.item_processors'] = function($app) { |
|
215 | 215 | $processors = new ArrayCollection(); |
216 | 216 | $processors->add(new DeletedProductValidator()); |
217 | 217 | $processors->add(new DisplayStatusValidator()); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | return $processors; |
222 | 222 | }; |
223 | 223 | |
224 | - $app['eccube.purchase.flow.cart.holder_processors'] = function ($app) { |
|
224 | + $app['eccube.purchase.flow.cart.holder_processors'] = function($app) { |
|
225 | 225 | $processors = new ArrayCollection(); |
226 | 226 | $processors->add(new PaymentProcessor($app[DeliveryRepository::class])); |
227 | 227 | $processors->add(new PaymentTotalLimitValidator($app['config']['max_total_fee'])); |
@@ -232,14 +232,14 @@ discard block |
||
232 | 232 | }; |
233 | 233 | |
234 | 234 | // example |
235 | - $app->extend('eccube.purchase.flow.cart.item_processors', function ($processors, $app) { |
|
235 | + $app->extend('eccube.purchase.flow.cart.item_processors', function($processors, $app) { |
|
236 | 236 | |
237 | 237 | $processors->add(new StockValidator()); |
238 | 238 | |
239 | 239 | return $processors; |
240 | 240 | }); |
241 | 241 | |
242 | - $app['eccube.purchase.flow.cart'] = function ($app) { |
|
242 | + $app['eccube.purchase.flow.cart'] = function($app) { |
|
243 | 243 | $flow = new PurchaseFlow(); |
244 | 244 | $flow->setItemProcessors($app['eccube.purchase.flow.cart.item_processors']); |
245 | 245 | $flow->setItemHolderProcessors($app['eccube.purchase.flow.cart.holder_processors']); |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | return $flow; |
248 | 248 | }; |
249 | 249 | |
250 | - $app['eccube.purchase.flow.shopping'] = function () use ($app) { |
|
250 | + $app['eccube.purchase.flow.shopping'] = function() use ($app) { |
|
251 | 251 | $flow = new PurchaseFlow(); |
252 | 252 | $flow->addItemProcessor(new StockValidator()); |
253 | 253 | $flow->addItemProcessor(new DisplayStatusValidator()); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | return $flow; |
258 | 258 | }; |
259 | 259 | |
260 | - $app['eccube.purchase.flow.order'] = function () use ($app) { |
|
260 | + $app['eccube.purchase.flow.order'] = function() use ($app) { |
|
261 | 261 | $flow = new PurchaseFlow(); |
262 | 262 | $flow->addItemProcessor(new StockValidator()); |
263 | 263 | $flow->addItemHolderProcessor(new PaymentTotalLimitValidator($app['config']['max_total_fee'])); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | { |
15 | 15 | public function register(Container $app) |
16 | 16 | { |
17 | - $app['eccube.di'] = function (Container $app) { |
|
17 | + $app['eccube.di'] = function(Container $app) { |
|
18 | 18 | $di = new Di( |
19 | 19 | $app['eccube.di.dirs'], |
20 | 20 | $app['eccube.di.annotation_reader'], |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | return $di; |
26 | 26 | }; |
27 | 27 | |
28 | - $app['eccube.di.generator'] = function (Container $app) { |
|
28 | + $app['eccube.di.generator'] = function(Container $app) { |
|
29 | 29 | $generator = new ProviderGenerator( |
30 | 30 | $app['eccube.di.generator.dir'], |
31 | 31 | $app['eccube.di.generator.class'] |
@@ -11,163 +11,163 @@ |
||
11 | 11 | public function register(Container $app) |
12 | 12 | { |
13 | 13 | // Repository |
14 | - $app['eccube.repository.master.authority'] = function () use ($app) { |
|
14 | + $app['eccube.repository.master.authority'] = function() use ($app) { |
|
15 | 15 | return $app['Eccube\Repository\Master\AuthorityRepository']; |
16 | 16 | }; |
17 | - $app['eccube.repository.master.tag'] = function () use ($app) { |
|
17 | + $app['eccube.repository.master.tag'] = function() use ($app) { |
|
18 | 18 | return $app['Eccube\Repository\Master\TagRepository']; |
19 | 19 | }; |
20 | - $app['eccube.repository.master.pref'] = function () use ($app) { |
|
20 | + $app['eccube.repository.master.pref'] = function() use ($app) { |
|
21 | 21 | return $app['Eccube\Repository\Master\PrefRepository']; |
22 | 22 | }; |
23 | - $app['eccube.repository.master.sex'] = function () use ($app) { |
|
23 | + $app['eccube.repository.master.sex'] = function() use ($app) { |
|
24 | 24 | return $app['Eccube\Repository\Master\SexRepository']; |
25 | 25 | }; |
26 | - $app['eccube.repository.master.disp'] = function () use ($app) { |
|
26 | + $app['eccube.repository.master.disp'] = function() use ($app) { |
|
27 | 27 | return $app['Eccube\Repository\Master\DispRepository']; |
28 | 28 | }; |
29 | - $app['eccube.repository.master.product_type'] = function () use ($app) { |
|
29 | + $app['eccube.repository.master.product_type'] = function() use ($app) { |
|
30 | 30 | return $app['Eccube\Repository\Master\ProductTypeRepository']; |
31 | 31 | }; |
32 | - $app['eccube.repository.master.page_max'] = function () use ($app) { |
|
32 | + $app['eccube.repository.master.page_max'] = function() use ($app) { |
|
33 | 33 | return $app['Eccube\Repository\Master\PageMaxRepository']; |
34 | 34 | }; |
35 | - $app['eccube.repository.master.order_status'] = function () use ($app) { |
|
35 | + $app['eccube.repository.master.order_status'] = function() use ($app) { |
|
36 | 36 | return $app['Eccube\Repository\Master\OrderStatusRepository']; |
37 | 37 | }; |
38 | - $app['eccube.repository.master.product_list_max'] = function () use ($app) { |
|
38 | + $app['eccube.repository.master.product_list_max'] = function() use ($app) { |
|
39 | 39 | return $app['Eccube\Repository\Master\ProductListMaxRepository']; |
40 | 40 | }; |
41 | - $app['eccube.repository.master.product_list_order_by'] = function () use ($app) { |
|
41 | + $app['eccube.repository.master.product_list_order_by'] = function() use ($app) { |
|
42 | 42 | return $app['Eccube\Repository\Master\ProductListOrderByRepository']; |
43 | 43 | }; |
44 | - $app['eccube.repository.master.device_type'] = function () use ($app) { |
|
44 | + $app['eccube.repository.master.device_type'] = function() use ($app) { |
|
45 | 45 | return $app['Eccube\Repository\Master\DeviceTypeRepository']; |
46 | 46 | }; |
47 | - $app['eccube.repository.master.csv_type'] = function () use ($app) { |
|
47 | + $app['eccube.repository.master.csv_type'] = function() use ($app) { |
|
48 | 48 | return $app['Eccube\Repository\Master\CsvTypeRepository']; |
49 | 49 | }; |
50 | - $app['eccube.repository.master.order_item_type'] = function () use ($app) { |
|
50 | + $app['eccube.repository.master.order_item_type'] = function() use ($app) { |
|
51 | 51 | return $app['Eccube\Repository\Master\OrderItemTypeRepository']; |
52 | 52 | }; |
53 | - $app['eccube.repository.base_info'] = function () use ($app) { |
|
53 | + $app['eccube.repository.base_info'] = function() use ($app) { |
|
54 | 54 | return $app['Eccube\Repository\BaseInfoRepository']; |
55 | 55 | }; |
56 | - $app['eccube.repository.delivery'] = function () use ($app) { |
|
56 | + $app['eccube.repository.delivery'] = function() use ($app) { |
|
57 | 57 | return $app['Eccube\Repository\DeliveryRepository']; |
58 | 58 | }; |
59 | - $app['eccube.repository.delivery_date'] = function () use ($app) { |
|
59 | + $app['eccube.repository.delivery_date'] = function() use ($app) { |
|
60 | 60 | return $app['Eccube\Repository\DeliveryDateRepository']; |
61 | 61 | }; |
62 | - $app['eccube.repository.delivery_fee'] = function () use ($app) { |
|
62 | + $app['eccube.repository.delivery_fee'] = function() use ($app) { |
|
63 | 63 | return $app['Eccube\Repository\DeliveryFeeRepository']; |
64 | 64 | }; |
65 | - $app['eccube.repository.delivery_time'] = function () use ($app) { |
|
65 | + $app['eccube.repository.delivery_time'] = function() use ($app) { |
|
66 | 66 | return $app['Eccube\Repository\DeliveryTimeRepository']; |
67 | 67 | }; |
68 | - $app['eccube.repository.payment'] = function () use ($app) { |
|
68 | + $app['eccube.repository.payment'] = function() use ($app) { |
|
69 | 69 | return $app['Eccube\Repository\PaymentRepository']; |
70 | 70 | }; |
71 | - $app['eccube.repository.payment_option'] = function () use ($app) { |
|
71 | + $app['eccube.repository.payment_option'] = function() use ($app) { |
|
72 | 72 | return $app['Eccube\Repository\PaymentOptionRepository']; |
73 | 73 | }; |
74 | - $app['eccube.repository.customer'] = function () use ($app) { |
|
74 | + $app['eccube.repository.customer'] = function() use ($app) { |
|
75 | 75 | return $app['Eccube\Repository\CustomerRepository']; |
76 | 76 | }; |
77 | - $app['eccube.repository.news'] = function () use ($app) { |
|
77 | + $app['eccube.repository.news'] = function() use ($app) { |
|
78 | 78 | return $app['Eccube\Repository\NewsRepository']; |
79 | 79 | }; |
80 | - $app['eccube.repository.mail_history'] = function () use ($app) { |
|
80 | + $app['eccube.repository.mail_history'] = function() use ($app) { |
|
81 | 81 | return $app['Eccube\Repository\MailHistoryRepository']; |
82 | 82 | }; |
83 | - $app['eccube.repository.member'] = function () use ($app) { |
|
83 | + $app['eccube.repository.member'] = function() use ($app) { |
|
84 | 84 | return $app['Eccube\Repository\MemberRepository']; |
85 | 85 | }; |
86 | - $app['eccube.repository.order'] = function () use ($app) { |
|
86 | + $app['eccube.repository.order'] = function() use ($app) { |
|
87 | 87 | return $app['Eccube\Repository\OrderRepository']; |
88 | 88 | }; |
89 | - $app['eccube.repository.product'] = function () use ($app) { |
|
89 | + $app['eccube.repository.product'] = function() use ($app) { |
|
90 | 90 | return $app['Eccube\Repository\ProductRepository']; |
91 | 91 | }; |
92 | - $app['eccube.repository.product_image'] = function () use ($app) { |
|
92 | + $app['eccube.repository.product_image'] = function() use ($app) { |
|
93 | 93 | return $app['Eccube\Repository\ProductImageRepository']; |
94 | 94 | }; |
95 | - $app['eccube.repository.product_class'] = function () use ($app) { |
|
95 | + $app['eccube.repository.product_class'] = function() use ($app) { |
|
96 | 96 | return $app['Eccube\Repository\ProductClassRepository']; |
97 | 97 | }; |
98 | - $app['eccube.repository.product_stock'] = function () use ($app) { |
|
98 | + $app['eccube.repository.product_stock'] = function() use ($app) { |
|
99 | 99 | return $app['Eccube\Repository\ProductStockRepository']; |
100 | 100 | }; |
101 | - $app['eccube.repository.product_tag'] = function () use ($app) { |
|
101 | + $app['eccube.repository.product_tag'] = function() use ($app) { |
|
102 | 102 | return $app['Eccube\Repository\ProductTagRepository']; |
103 | 103 | }; |
104 | - $app['eccube.repository.class_name'] = function () use ($app) { |
|
104 | + $app['eccube.repository.class_name'] = function() use ($app) { |
|
105 | 105 | return $app['Eccube\Repository\ClassNameRepository']; |
106 | 106 | }; |
107 | - $app['eccube.repository.class_category'] = function () use ($app) { |
|
107 | + $app['eccube.repository.class_category'] = function() use ($app) { |
|
108 | 108 | return $app['Eccube\Repository\ClassCategoryRepository']; |
109 | 109 | }; |
110 | - $app['eccube.repository.customer_favorite_product'] = function () use ($app) { |
|
110 | + $app['eccube.repository.customer_favorite_product'] = function() use ($app) { |
|
111 | 111 | return $app['Eccube\Repository\CustomerFavoriteProductRepository']; |
112 | 112 | }; |
113 | - $app['eccube.repository.tax_rule'] = function () use ($app) { |
|
113 | + $app['eccube.repository.tax_rule'] = function() use ($app) { |
|
114 | 114 | return $app['Eccube\Repository\TaxRuleRepository']; |
115 | 115 | }; |
116 | - $app['eccube.repository.page_layout'] = function () use ($app) { |
|
116 | + $app['eccube.repository.page_layout'] = function() use ($app) { |
|
117 | 117 | return $app['Eccube\Repository\PageLayoutRepository']; |
118 | 118 | }; |
119 | - $app['eccube.repository.block'] = function () use ($app) { |
|
119 | + $app['eccube.repository.block'] = function() use ($app) { |
|
120 | 120 | return $app['Eccube\Repository\BlockRepository']; |
121 | 121 | }; |
122 | - $app['eccube.repository.order'] = function () use ($app) { |
|
122 | + $app['eccube.repository.order'] = function() use ($app) { |
|
123 | 123 | return $app['Eccube\Repository\OrderRepository']; |
124 | 124 | }; |
125 | - $app['eccube.repository.customer_address'] = function () use ($app) { |
|
125 | + $app['eccube.repository.customer_address'] = function() use ($app) { |
|
126 | 126 | return $app['Eccube\Repository\CustomerAddressRepository']; |
127 | 127 | }; |
128 | - $app['eccube.repository.shipping'] = function () use ($app) { |
|
128 | + $app['eccube.repository.shipping'] = function() use ($app) { |
|
129 | 129 | return $app['Eccube\Repository\ShippingRepository']; |
130 | 130 | }; |
131 | - $app['eccube.repository.shipment_item'] = function () use ($app) { |
|
131 | + $app['eccube.repository.shipment_item'] = function() use ($app) { |
|
132 | 132 | return $app['Eccube\Repository\ShipmentItemRepository']; |
133 | 133 | }; |
134 | - $app['eccube.repository.master.customer_status'] = function () use ($app) { |
|
134 | + $app['eccube.repository.master.customer_status'] = function() use ($app) { |
|
135 | 135 | return $app['Eccube\Repository\Master\CustomerStatusRepository']; |
136 | 136 | }; |
137 | 137 | |
138 | - $app['eccube.repository.mail_template'] = function () use ($app) { |
|
138 | + $app['eccube.repository.mail_template'] = function() use ($app) { |
|
139 | 139 | return $app['Eccube\Repository\MailTemplateRepository']; |
140 | 140 | }; |
141 | - $app['eccube.repository.csv'] = function () use ($app) { |
|
141 | + $app['eccube.repository.csv'] = function() use ($app) { |
|
142 | 142 | return $app['Eccube\Repository\CsvRepository']; |
143 | 143 | }; |
144 | - $app['eccube.repository.template'] = function () use ($app) { |
|
144 | + $app['eccube.repository.template'] = function() use ($app) { |
|
145 | 145 | return $app['Eccube\Repository\TemplateRepository']; |
146 | 146 | }; |
147 | - $app['eccube.repository.authority_role'] = function () use ($app) { |
|
147 | + $app['eccube.repository.authority_role'] = function() use ($app) { |
|
148 | 148 | return $app['Eccube\Repository\AuthorityRoleRepository']; |
149 | 149 | }; |
150 | - $app['eccube.repository.category'] = function () use ($app) { |
|
150 | + $app['eccube.repository.category'] = function() use ($app) { |
|
151 | 151 | return $app['Eccube\Repository\CategoryRepository']; |
152 | 152 | }; |
153 | - $app['eccube.repository.help'] = function () use ($app) { |
|
153 | + $app['eccube.repository.help'] = function() use ($app) { |
|
154 | 154 | return $app['Eccube\Repository\HelpRepository']; |
155 | 155 | }; |
156 | - $app['eccube.repository.plugin'] = function () use ($app) { |
|
156 | + $app['eccube.repository.plugin'] = function() use ($app) { |
|
157 | 157 | return $app['Eccube\Repository\PluginRepository']; |
158 | 158 | }; |
159 | - $app['eccube.repository.plugin_event_handler'] = function () use ($app) { |
|
159 | + $app['eccube.repository.plugin_event_handler'] = function() use ($app) { |
|
160 | 160 | return $app['Eccube\Repository\PluginEventHandlerRepository']; |
161 | 161 | }; |
162 | - $app['eccube.repository.layout'] = function () use ($app) { |
|
162 | + $app['eccube.repository.layout'] = function() use ($app) { |
|
163 | 163 | return $app['Eccube\Repository\LayoutRepository']; |
164 | 164 | }; |
165 | 165 | |
166 | 166 | // alias |
167 | - $app['eccube.repository.order_status'] = function () use ($app) { |
|
167 | + $app['eccube.repository.order_status'] = function() use ($app) { |
|
168 | 168 | return $app['Eccube\Repository\Master\OrderStatusRepository']; |
169 | 169 | }; |
170 | - $app['eccube.repository.customer_status'] = function () use ($app) { |
|
170 | + $app['eccube.repository.customer_status'] = function() use ($app) { |
|
171 | 171 | return $app['Eccube\Repository\Master\CustomerStatusRepository']; |
172 | 172 | }; |
173 | 173 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | out('EC-CUBE3 installer use database driver of ', null, false); |
32 | 32 | |
33 | 33 | $database_driver = 'pdo_sqlite'; |
34 | -switch($argv[1]) { |
|
34 | +switch ($argv[1]) { |
|
35 | 35 | case 'mysql': |
36 | 36 | $database_driver = 'pdo_mysql'; |
37 | 37 | break; |
@@ -166,8 +166,7 @@ discard block |
||
166 | 166 | putenv('MAIL_PASS='.(getenv('MAIL_PASS') ? getenv('MAIL_PASS') : null)); |
167 | 167 | putenv('ADMIN_ROUTE='.(getenv('ADMIN_ROUTE') ? getenv('ADMIN_ROUTE') : 'admin')); |
168 | 168 | putenv('ROOT_URLPATH='.(getenv('ROOT_URLPATH') ? getenv('ROOT_URLPATH') : null)); |
169 | - putenv('AUTH_MAGIC='.(getenv('AUTH_MAGIC') ? getenv('AUTH_MAGIC') : |
|
170 | - substr(str_replace(array('/', '+', '='), '', base64_encode(openssl_random_pseudo_bytes(32 * 2))), 0, 32))); |
|
169 | + putenv('AUTH_MAGIC='.(getenv('AUTH_MAGIC') ? getenv('AUTH_MAGIC') : substr(str_replace(array('/', '+', '='), '', base64_encode(openssl_random_pseudo_bytes(32 * 2))), 0, 32))); |
|
171 | 170 | } |
172 | 171 | |
173 | 172 | function getExampleVariables() |
@@ -277,7 +276,7 @@ discard block |
||
277 | 276 | { |
278 | 277 | $app = \Eccube\Application::getInstance(); |
279 | 278 | $app['debug'] = true; |
280 | - $app['annotations'] = function () { |
|
279 | + $app['annotations'] = function() { |
|
281 | 280 | return new \Doctrine\Common\Annotations\AnnotationReader(); |
282 | 281 | }; |
283 | 282 | $app->initDoctrine(); |
@@ -389,15 +388,15 @@ discard block |
||
389 | 388 | foreach ($finder as $content) { |
390 | 389 | $permission = $content->getPerms(); |
391 | 390 | // see also http://www.php.net/fileperms |
392 | - if (!($permission & 0x0010) || !($permission & 0x0002)) { |
|
391 | + if (!($permission&0x0010) || !($permission&0x0002)) { |
|
393 | 392 | $realPath = $content->getRealPath(); |
394 | 393 | if ($verbose) { |
395 | 394 | out(sprintf('%s %s to ', $realPath, substr(sprintf('%o', $permission), -4)), 'info', false); |
396 | 395 | } |
397 | - $permission = !($permission & 0x0020) ? $permission += 040 : $permission; // g+r |
|
398 | - $permission = !($permission & 0x0010) ? $permission += 020 : $permission; // g+w |
|
399 | - $permission = !($permission & 0x0004) ? $permission += 04 : $permission; // o+r |
|
400 | - $permission = !($permission & 0x0002) ? $permission += 02 : $permission; // o+w |
|
396 | + $permission = !($permission&0x0020) ? $permission += 040 : $permission; // g+r |
|
397 | + $permission = !($permission&0x0010) ? $permission += 020 : $permission; // g+w |
|
398 | + $permission = !($permission&0x0004) ? $permission += 04 : $permission; // o+r |
|
399 | + $permission = !($permission&0x0002) ? $permission += 02 : $permission; // o+w |
|
401 | 400 | $result = chmod($realPath, $permission); |
402 | 401 | if ($verbose) { |
403 | 402 | if ($result) { |
@@ -428,13 +427,13 @@ discard block |
||
428 | 427 | |
429 | 428 | function getConfig() |
430 | 429 | { |
431 | - $config = array ( |
|
430 | + $config = array( |
|
432 | 431 | 'auth_magic' => getenv('AUTH_MAGIC'), |
433 | 432 | 'password_hash_algos' => 'sha256', |
434 | 433 | 'shop_name' => getenv('SHOP_NAME'), |
435 | 434 | 'force_ssl' => NULL, |
436 | 435 | 'admin_allow_host' => |
437 | - array ( |
|
436 | + array( |
|
438 | 437 | ), |
439 | 438 | 'cookie_lifetime' => 0, |
440 | 439 | 'locale' => 'ja', |
@@ -447,9 +446,9 @@ discard block |
||
447 | 446 | |
448 | 447 | function getDatabaseConfig($database_driver) |
449 | 448 | { |
450 | - $database = array ( |
|
449 | + $database = array( |
|
451 | 450 | 'database' => |
452 | - array ( |
|
451 | + array( |
|
453 | 452 | 'driver' => $database_driver, |
454 | 453 | ) |
455 | 454 | ); |
@@ -476,9 +475,9 @@ discard block |
||
476 | 475 | |
477 | 476 | function getMailConfig() |
478 | 477 | { |
479 | - $mail = array ( |
|
478 | + $mail = array( |
|
480 | 479 | 'mail' => |
481 | - array ( |
|
480 | + array( |
|
482 | 481 | 'transport' => getenv('MAIL_BACKEND'), |
483 | 482 | 'host' => getenv('MAIL_HOST'), |
484 | 483 | 'port' => getenv('MAIL_PORT'), |