|
1
|
|
|
<?php |
|
2
|
|
|
/* |
|
3
|
|
|
* This file is part of EC-CUBE |
|
4
|
|
|
* |
|
5
|
|
|
* Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved. |
|
6
|
|
|
* |
|
7
|
|
|
* http://www.lockon.co.jp/ |
|
8
|
|
|
* |
|
9
|
|
|
* This program is free software; you can redistribute it and/or |
|
10
|
|
|
* modify it under the terms of the GNU General Public License |
|
11
|
|
|
* as published by the Free Software Foundation; either version 2 |
|
12
|
|
|
* of the License, or (at your option) any later version. |
|
13
|
|
|
* |
|
14
|
|
|
* This program is distributed in the hope that it will be useful, |
|
15
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
17
|
|
|
* GNU General Public License for more details. |
|
18
|
|
|
* |
|
19
|
|
|
* You should have received a copy of the GNU General Public License |
|
20
|
|
|
* along with this program; if not, write to the Free Software |
|
21
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
22
|
|
|
*/ |
|
23
|
|
|
|
|
24
|
|
|
|
|
25
|
|
|
namespace Eccube\ServiceProvider; |
|
26
|
|
|
|
|
27
|
|
|
use Eccube\Application; |
|
28
|
|
|
use Silex\Application as BaseApplication; |
|
29
|
|
|
use Silex\ServiceProviderInterface; |
|
30
|
|
|
|
|
31
|
|
|
class EccubeServiceProvider implements ServiceProviderInterface |
|
|
|
|
|
|
32
|
|
|
{ |
|
33
|
|
|
/** |
|
34
|
|
|
* Registers services on the given app. |
|
35
|
|
|
* |
|
36
|
|
|
* This method should only be used to configure services and parameters. |
|
37
|
|
|
* It should not get services. |
|
38
|
|
|
* |
|
39
|
|
|
* @param BaseApplication $app An Application instance |
|
40
|
|
|
*/ |
|
41
|
936 |
|
public function register(BaseApplication $app) |
|
42
|
|
|
{ |
|
43
|
|
|
// Service |
|
44
|
|
|
$app['eccube.service.system'] = $app->share(function () use ($app) { |
|
45
|
2 |
|
return new \Eccube\Service\SystemService($app); |
|
|
|
|
|
|
46
|
936 |
|
}); |
|
47
|
|
|
$app['view'] = $app->share(function () use ($app) { |
|
48
|
|
|
return $app['twig']; |
|
49
|
936 |
|
}); |
|
50
|
|
|
$app['eccube.service.cart'] = $app->share(function () use ($app) { |
|
51
|
175 |
|
return new \Eccube\Service\CartService($app); |
|
|
|
|
|
|
52
|
936 |
|
}); |
|
53
|
|
|
$app['eccube.service.order'] = $app->share(function () use ($app) { |
|
54
|
59 |
|
return new \Eccube\Service\OrderService($app); |
|
|
|
|
|
|
55
|
936 |
|
}); |
|
56
|
|
|
$app['eccube.service.tax_rule'] = $app->share(function () use ($app) { |
|
57
|
31 |
|
return new \Eccube\Service\TaxRuleService($app['eccube.repository.tax_rule']); |
|
58
|
936 |
|
}); |
|
59
|
|
|
$app['eccube.service.plugin'] = $app->share(function () use ($app) { |
|
60
|
148 |
|
return new \Eccube\Service\PluginService($app); |
|
61
|
936 |
|
}); |
|
62
|
|
|
$app['eccube.service.mail'] = $app->share(function () use ($app) { |
|
63
|
35 |
|
return new \Eccube\Service\MailService($app); |
|
|
|
|
|
|
64
|
936 |
|
}); |
|
65
|
|
|
$app['eccube.service.csv.export'] = $app->share(function () use ($app) { |
|
66
|
2 |
|
$csvService = new \Eccube\Service\CsvExportService(); |
|
67
|
2 |
|
$csvService->setEntityManager($app['orm.em']); |
|
68
|
2 |
|
$csvService->setConfig($app['config']); |
|
69
|
2 |
|
$csvService->setCsvRepository($app['eccube.repository.csv']); |
|
70
|
2 |
|
$csvService->setCsvTypeRepository($app['eccube.repository.master.csv_type']); |
|
71
|
2 |
|
$csvService->setOrderRepository($app['eccube.repository.order']); |
|
72
|
2 |
|
$csvService->setCustomerRepository($app['eccube.repository.customer']); |
|
73
|
2 |
|
$csvService->setProductRepository($app['eccube.repository.product']); |
|
74
|
|
|
|
|
75
|
2 |
|
return $csvService; |
|
76
|
936 |
|
}); |
|
77
|
|
|
$app['eccube.service.shopping'] = $app->share(function () use ($app) { |
|
78
|
55 |
|
return new \Eccube\Service\ShoppingService($app, $app['eccube.service.cart'], $app['eccube.service.order']); |
|
|
|
|
|
|
79
|
936 |
|
}); |
|
80
|
|
|
|
|
81
|
|
|
// Repository |
|
82
|
|
|
$app['eccube.repository.master.authority'] = $app->share(function () use ($app) { |
|
83
|
104 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\Authority'); |
|
84
|
936 |
|
}); |
|
85
|
|
|
$app['eccube.repository.master.tag'] = $app->share(function () use ($app) { |
|
86
|
3 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\Tag'); |
|
87
|
936 |
|
}); |
|
88
|
|
|
$app['eccube.repository.master.pref'] = $app->share(function () use ($app) { |
|
89
|
283 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\Pref'); |
|
90
|
936 |
|
}); |
|
91
|
|
|
$app['eccube.repository.master.sex'] = $app->share(function () use ($app) { |
|
92
|
11 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\Sex'); |
|
93
|
936 |
|
}); |
|
94
|
|
|
$app['eccube.repository.master.disp'] = $app->share(function () use ($app) { |
|
95
|
211 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\Disp'); |
|
96
|
936 |
|
}); |
|
97
|
|
|
$app['eccube.repository.master.product_type'] = $app->share(function () use ($app) { |
|
98
|
220 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductType'); |
|
99
|
936 |
|
}); |
|
100
|
|
|
$app['eccube.repository.master.page_max'] = $app->share(function () use ($app) { |
|
101
|
12 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\PageMax'); |
|
102
|
936 |
|
}); |
|
103
|
|
|
$app['eccube.repository.master.order_status'] = $app->share(function () use ($app) { |
|
104
|
3 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus'); |
|
105
|
936 |
|
}); |
|
106
|
|
|
$app['eccube.repository.master.device_type'] = $app->share(function () use ($app) { |
|
107
|
205 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\DeviceType'); |
|
108
|
936 |
|
}); |
|
109
|
|
|
$app['eccube.repository.master.csv_type'] = $app->share(function () use ($app) { |
|
110
|
21 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\CsvType'); |
|
111
|
936 |
|
}); |
|
112
|
|
|
|
|
113
|
|
|
$app['eccube.repository.delivery'] = $app->share(function () use ($app) { |
|
114
|
192 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Delivery'); |
|
115
|
936 |
|
}); |
|
116
|
|
|
$app['eccube.repository.delivery_date'] = $app->share(function () use ($app) { |
|
117
|
5 |
|
return $app['orm.em']->getRepository('Eccube\Entity\DeliveryDate'); |
|
118
|
936 |
|
}); |
|
119
|
|
|
$app['eccube.repository.delivery_fee'] = $app->share(function () use ($app) { |
|
120
|
37 |
|
return $app['orm.em']->getRepository('Eccube\Entity\DeliveryFee'); |
|
121
|
936 |
|
}); |
|
122
|
|
|
$app['eccube.repository.delivery_time'] = $app->share(function () use ($app) { |
|
123
|
|
|
return $app['orm.em']->getRepository('Eccube\Entity\DeliveryTime'); |
|
124
|
936 |
|
}); |
|
125
|
|
|
$app['eccube.repository.payment'] = $app->share(function () use ($app) { |
|
126
|
54 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Payment'); |
|
127
|
936 |
|
}); |
|
128
|
|
|
$app['eccube.repository.payment_option'] = $app->share(function () use ($app) { |
|
129
|
|
|
return $app['orm.em']->getRepository('Eccube\Entity\PaymentOption'); |
|
130
|
936 |
|
}); |
|
131
|
|
|
$app['eccube.repository.category'] = $app->share(function () use ($app) { |
|
132
|
318 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Category'); |
|
133
|
936 |
|
}); |
|
134
|
|
|
$app['eccube.repository.customer'] = $app->share(function () use ($app) { |
|
135
|
281 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Customer'); |
|
136
|
936 |
|
}); |
|
137
|
|
|
$app['eccube.repository.news'] = $app->share(function () use ($app) { |
|
138
|
20 |
|
return $app['orm.em']->getRepository('Eccube\Entity\News'); |
|
139
|
936 |
|
}); |
|
140
|
|
|
$app['eccube.repository.mail_history'] = $app->share(function () use ($app) { |
|
141
|
10 |
|
return $app['orm.em']->getRepository('Eccube\Entity\MailHistory'); |
|
142
|
936 |
|
}); |
|
143
|
|
|
$app['eccube.repository.member'] = $app->share(function () use ($app) { |
|
144
|
383 |
|
$memberRepository = $app['orm.em']->getRepository('Eccube\Entity\Member'); |
|
145
|
383 |
|
$memberRepository->setEncoderFactorty($app['security.encoder_factory']); |
|
146
|
383 |
|
return $memberRepository; |
|
|
|
|
|
|
147
|
936 |
|
}); |
|
148
|
|
|
$app['eccube.repository.order'] = $app->share(function () use ($app) { |
|
149
|
|
|
return $app['orm.em']->getRepository('Eccube\Entity\Order'); |
|
150
|
936 |
|
}); |
|
151
|
|
|
$app['eccube.repository.product'] = $app->share(function () use ($app) { |
|
152
|
53 |
|
$productRepository = $app['orm.em']->getRepository('Eccube\Entity\Product'); |
|
153
|
53 |
|
return $productRepository; |
|
|
|
|
|
|
154
|
936 |
|
}); |
|
155
|
|
|
$app['eccube.repository.product_image'] = $app->share(function () use ($app) { |
|
156
|
|
|
return $app['orm.em']->getRepository('Eccube\Entity\ProductImage'); |
|
157
|
936 |
|
}); |
|
158
|
|
|
$app['eccube.repository.product_class'] = $app->share(function () use ($app) { |
|
159
|
32 |
|
return $app['orm.em']->getRepository('Eccube\Entity\ProductClass'); |
|
160
|
936 |
|
}); |
|
161
|
|
|
$app['eccube.repository.product_stock'] = $app->share(function () use ($app) { |
|
162
|
|
|
return $app['orm.em']->getRepository('Eccube\Entity\ProductStock'); |
|
163
|
936 |
|
}); |
|
164
|
|
|
$app['eccube.repository.class_name'] = $app->share(function () use ($app) { |
|
165
|
35 |
|
return $app['orm.em']->getRepository('Eccube\Entity\ClassName'); |
|
166
|
936 |
|
}); |
|
167
|
|
|
$app['eccube.repository.class_category'] = $app->share(function () use ($app) { |
|
168
|
38 |
|
return $app['orm.em']->getRepository('Eccube\Entity\ClassCategory'); |
|
169
|
936 |
|
}); |
|
170
|
|
|
$app['eccube.repository.customer_favorite_product'] = $app->share(function () use ($app) { |
|
171
|
491 |
|
return $app['orm.em']->getRepository('Eccube\Entity\CustomerFavoriteProduct'); |
|
172
|
936 |
|
}); |
|
173
|
|
|
$app['eccube.repository.base_info'] = $app->share(function () use ($app) { |
|
174
|
560 |
|
return $app['orm.em']->getRepository('Eccube\Entity\BaseInfo'); |
|
175
|
936 |
|
}); |
|
176
|
|
|
$app['eccube.repository.tax_rule'] = $app->share(function () use ($app) { |
|
177
|
176 |
|
$taxRuleRepository = $app['orm.em']->getRepository('Eccube\Entity\TaxRule'); |
|
178
|
176 |
|
$taxRuleRepository->setApplication($app); |
|
179
|
|
|
|
|
180
|
176 |
|
return $taxRuleRepository; |
|
181
|
936 |
|
}); |
|
182
|
|
|
$app['eccube.repository.page_layout'] = $app->share(function () use ($app) { |
|
183
|
190 |
|
$pageLayoutRepository = $app['orm.em']->getRepository('Eccube\Entity\PageLayout'); |
|
184
|
190 |
|
$pageLayoutRepository->setApplication($app); |
|
185
|
|
|
|
|
186
|
190 |
|
return $pageLayoutRepository; |
|
187
|
936 |
|
}); |
|
188
|
|
|
$app['eccube.repository.block'] = $app->share(function () use ($app) { |
|
189
|
14 |
|
$blockRepository = $app['orm.em']->getRepository('Eccube\Entity\Block'); |
|
190
|
14 |
|
$blockRepository->setApplication($app); |
|
191
|
|
|
|
|
192
|
14 |
|
return $blockRepository; |
|
193
|
936 |
|
}); |
|
194
|
|
|
$app['eccube.repository.order'] = $app->share(function () use ($app) { |
|
195
|
123 |
|
$orderRepository = $app['orm.em']->getRepository('Eccube\Entity\Order'); |
|
196
|
123 |
|
$orderRepository->setApplication($app); |
|
197
|
|
|
|
|
198
|
123 |
|
return $orderRepository; |
|
199
|
936 |
|
}); |
|
200
|
|
|
$app['eccube.repository.customer_address'] = $app->share(function () use ($app) { |
|
201
|
82 |
|
return $app['orm.em']->getRepository('Eccube\Entity\CustomerAddress'); |
|
202
|
936 |
|
}); |
|
203
|
|
|
$app['eccube.repository.shipping'] = $app->share(function () use ($app) { |
|
204
|
1 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Shipping'); |
|
205
|
936 |
|
}); |
|
206
|
|
|
$app['eccube.repository.customer_status'] = $app->share(function () use ($app) { |
|
207
|
2 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\CustomerStatus'); |
|
208
|
936 |
|
}); |
|
209
|
|
|
$app['eccube.repository.order_status'] = $app->share(function () use ($app) { |
|
210
|
149 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus'); |
|
211
|
936 |
|
}); |
|
212
|
|
|
$app['eccube.repository.mail_template'] = $app->share(function () use ($app) { |
|
213
|
10 |
|
return $app['orm.em']->getRepository('Eccube\Entity\MailTemplate'); |
|
214
|
936 |
|
}); |
|
215
|
|
|
$app['eccube.repository.csv'] = $app->share(function () use ($app) { |
|
216
|
6 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Csv'); |
|
217
|
936 |
|
}); |
|
218
|
|
|
$app['eccube.repository.template'] = $app->share(function () use ($app) { |
|
219
|
1 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Template'); |
|
220
|
936 |
|
}); |
|
221
|
|
|
$app['eccube.repository.authority_role'] = $app->share(function () use ($app) { |
|
222
|
181 |
|
return $app['orm.em']->getRepository('Eccube\Entity\AuthorityRole'); |
|
223
|
936 |
|
}); |
|
224
|
|
|
|
|
225
|
|
|
$app['paginator'] = $app->protect(function () { |
|
226
|
15 |
|
return new \Knp\Component\Pager\Paginator(); |
|
227
|
936 |
|
}); |
|
228
|
|
|
|
|
229
|
|
|
$app['eccube.repository.help'] = $app->share(function () use ($app) { |
|
230
|
5 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Help'); |
|
231
|
936 |
|
}); |
|
232
|
|
|
$app['eccube.repository.plugin'] = $app->share(function () use ($app) { |
|
233
|
6 |
|
return $app['orm.em']->getRepository('Eccube\Entity\Plugin'); |
|
234
|
936 |
|
}); |
|
235
|
|
|
$app['eccube.repository.plugin_event_handler'] = $app->share(function () use ($app) { |
|
236
|
1 |
|
return $app['orm.em']->getRepository('Eccube\Entity\PluginEventHandler'); |
|
237
|
936 |
|
}); |
|
238
|
|
|
// em |
|
239
|
936 |
|
if (isset($app['orm.em'])) { |
|
240
|
|
|
$app['orm.em'] = $app->share($app->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
|
241
|
|
|
// tax_rule |
|
242
|
936 |
|
$taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule'); |
|
243
|
936 |
|
$taxRuleRepository->setApplication($app); |
|
244
|
936 |
|
$taxRuleService = new \Eccube\Service\TaxRuleService($taxRuleRepository); |
|
|
|
|
|
|
245
|
936 |
|
$em->getEventManager()->addEventSubscriber(new \Eccube\Doctrine\EventSubscriber\TaxRuleEventSubscriber($taxRuleService)); |
|
246
|
|
|
|
|
247
|
|
|
// save |
|
248
|
936 |
|
$saveEventSubscriber = new \Eccube\Doctrine\EventSubscriber\SaveEventSubscriber($app); |
|
|
|
|
|
|
249
|
936 |
|
$em->getEventManager()->addEventSubscriber($saveEventSubscriber); |
|
250
|
|
|
|
|
251
|
|
|
// filters |
|
252
|
936 |
|
$config = $em->getConfiguration(); |
|
253
|
936 |
|
$config->addFilter("soft_delete", '\Eccube\Doctrine\Filter\SoftDeleteFilter'); |
|
254
|
936 |
|
$config->addFilter("nostock_hidden", '\Eccube\Doctrine\Filter\NoStockHiddenFilter'); |
|
255
|
936 |
|
$config->addFilter("incomplete_order_status_hidden", '\Eccube\Doctrine\Filter\OrderStatusFilter'); |
|
256
|
936 |
|
$em->getFilters()->enable('soft_delete'); |
|
257
|
|
|
|
|
258
|
936 |
|
return $em; |
|
259
|
936 |
|
})); |
|
260
|
|
|
} |
|
261
|
|
|
|
|
262
|
|
|
// Form\Type |
|
263
|
|
|
$app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function ($extensions) use ($app) { |
|
264
|
490 |
|
$extensions[] = new \Eccube\Form\Extension\HelpTypeExtension(); |
|
265
|
490 |
|
$extensions[] = new \Eccube\Form\Extension\FreezeTypeExtension(); |
|
266
|
|
|
|
|
267
|
490 |
|
return $extensions; |
|
268
|
936 |
|
})); |
|
269
|
936 |
|
$app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) { |
|
270
|
490 |
|
$types[] = new \Eccube\Form\Type\NameType($app['config']); |
|
271
|
490 |
|
$types[] = new \Eccube\Form\Type\KanaType($app['config']); |
|
272
|
490 |
|
$types[] = new \Eccube\Form\Type\TelType($app['config']); |
|
273
|
490 |
|
$types[] = new \Eccube\Form\Type\FaxType(); // 削除予定 |
|
274
|
490 |
|
$types[] = new \Eccube\Form\Type\ZipType($app['config']); |
|
275
|
490 |
|
$types[] = new \Eccube\Form\Type\AddressType($app['config']); |
|
276
|
490 |
|
$types[] = new \Eccube\Form\Type\RepeatedEmailType(); |
|
277
|
490 |
|
$types[] = new \Eccube\Form\Type\RepeatedPasswordType($app['config']); |
|
278
|
490 |
|
$types[] = new \Eccube\Form\Type\PriceType($app['config']); |
|
279
|
|
|
|
|
280
|
490 |
|
$types[] = new \Eccube\Form\Type\MasterType(); |
|
281
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\JobType(); |
|
282
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\CustomerStatusType(); |
|
283
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\OrderStatusType(); |
|
284
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\CalcRuleType(); |
|
285
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\SexType(); |
|
286
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\DispType(); |
|
287
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\PrefType(); |
|
288
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\ProductTypeType(); |
|
289
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\ProductListMaxType(); |
|
290
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\ProductListOrderByType(); |
|
291
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\PageMaxType(); |
|
292
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\CsvType(); |
|
293
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\DeliveryDateType(); |
|
294
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\PaymentType(); |
|
295
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\MailTemplateType(); |
|
296
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\CategoryType(); |
|
297
|
490 |
|
$types[] = new \Eccube\Form\Type\Master\TagType(); |
|
298
|
|
|
|
|
299
|
490 |
|
$types[] = new \Eccube\Form\Type\CustomerType($app); // 削除予定 |
|
300
|
|
|
|
|
301
|
490 |
|
if (isset($app['security']) && isset($app['eccube.repository.customer_favorite_product'])) { |
|
302
|
490 |
|
$types[] = new \Eccube\Form\Type\AddCartType($app['config'], $app['security'], $app['eccube.repository.customer_favorite_product']); |
|
303
|
|
|
} |
|
304
|
490 |
|
$types[] = new \Eccube\Form\Type\SearchProductType(); |
|
305
|
490 |
|
$types[] = new \Eccube\Form\Type\OrderSearchType($app); |
|
306
|
490 |
|
$types[] = new \Eccube\Form\Type\ShippingItemType($app); |
|
|
|
|
|
|
307
|
490 |
|
$types[] = new \Eccube\Form\Type\ShippingMultipleType($app); |
|
|
|
|
|
|
308
|
490 |
|
$types[] = new \Eccube\Form\Type\ShippingMultipleItemType($app); |
|
|
|
|
|
|
309
|
490 |
|
$types[] = new \Eccube\Form\Type\ShoppingType(); |
|
310
|
|
|
|
|
311
|
|
|
// front |
|
312
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\EntryType($app['config']); |
|
313
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\ContactType($app['config']); |
|
314
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\NonMemberType($app['config']); |
|
315
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\ShoppingShippingType(); |
|
316
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\CustomerAddressType($app['config']); |
|
317
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\ForgotType(); |
|
318
|
490 |
|
$types[] = new \Eccube\Form\Type\Front\CustomerLoginType($app['session']); |
|
319
|
|
|
|
|
320
|
|
|
// admin |
|
321
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\LoginType($app['session']); |
|
322
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ProductType($app); |
|
323
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ProductClassType($app); |
|
324
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\SearchProductType($app); |
|
325
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\SearchCustomerType($app['config']); |
|
326
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\SearchOrderType($app['config']); |
|
327
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\CustomerType($app['config']); |
|
328
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ClassNameType($app['config']); |
|
329
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ClassCategoryType($app['config']); |
|
330
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\CategoryType($app['config']); |
|
331
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\MemberType($app['config']); |
|
332
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\AuthorityRoleType($app['config']); |
|
333
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\PageLayoutType(); |
|
334
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\NewsType($app['config']); |
|
335
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\TemplateType($app['config']); |
|
336
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\SecurityType($app); |
|
337
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\CsvImportType($app); |
|
338
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ShopMasterType($app['config']); |
|
339
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\TradelawType($app['config']); |
|
340
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\OrderType($app); |
|
341
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\OrderDetailType($app); |
|
342
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ShippingType($app); |
|
|
|
|
|
|
343
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\ShipmentItemType($app); |
|
344
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\PaymentRegisterType(); |
|
345
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\TaxRuleType(); |
|
346
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\MainEditType($app); |
|
347
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\MailType(); |
|
348
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\CustomerAgreementType($app); |
|
349
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\BlockType($app); |
|
350
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\DeliveryType(); |
|
351
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\DeliveryFeeType(); |
|
352
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\DeliveryTimeType($app['config']); |
|
353
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\LogType($app['config']); |
|
354
|
|
|
|
|
355
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\MasterdataType($app); |
|
356
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\MasterdataEditType($app); |
|
357
|
|
|
|
|
358
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\PluginLocalInstallType(); |
|
359
|
490 |
|
$types[] = new \Eccube\Form\Type\Admin\PluginManagementType(); |
|
360
|
|
|
|
|
361
|
490 |
|
return $types; |
|
362
|
936 |
|
})); |
|
363
|
|
|
} |
|
364
|
|
|
|
|
365
|
|
|
/** |
|
|
|
|
|
|
366
|
|
|
* Bootstraps the application. |
|
367
|
|
|
* |
|
368
|
|
|
* This method is called after all services are registered |
|
369
|
|
|
* and should be used for "dynamic" configuration (whenever |
|
370
|
|
|
* a service must be requested). |
|
371
|
|
|
*/ |
|
372
|
|
|
public function boot(BaseApplication $app) |
|
373
|
|
|
{ |
|
374
|
|
|
} |
|
375
|
|
|
} |
|
376
|
|
|
|