This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
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 | 1189 | 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); |
|
0 ignored issues
–
show
|
|||
46 | 1189 | }); |
|
47 | $app['view'] = $app->share(function () use ($app) { |
||
48 | return $app['twig']; |
||
49 | 1189 | }); |
|
50 | $app['eccube.service.cart'] = $app->share(function () use ($app) { |
||
51 | 272 | return new \Eccube\Service\CartService($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
52 | 1189 | }); |
|
53 | $app['eccube.service.order'] = $app->share(function () use ($app) { |
||
54 | 119 | return new \Eccube\Service\OrderService($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
55 | 1189 | }); |
|
56 | $app['eccube.service.tax_rule'] = $app->share(function () use ($app) { |
||
57 | 55 | return new \Eccube\Service\TaxRuleService($app['eccube.repository.tax_rule']); |
|
58 | 1189 | }); |
|
59 | $app['eccube.service.plugin'] = $app->share(function () use ($app) { |
||
60 | 150 | return new \Eccube\Service\PluginService($app); |
|
61 | 1189 | }); |
|
62 | $app['eccube.service.mail'] = $app->share(function () use ($app) { |
||
63 | 51 | return new \Eccube\Service\MailService($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
64 | 1189 | }); |
|
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 | 1189 | }); |
|
77 | $app['eccube.service.shopping'] = $app->share(function () use ($app) { |
||
78 | 115 | return new \Eccube\Service\ShoppingService($app, $app['eccube.service.cart'], $app['eccube.service.order']); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
79 | 1189 | }); |
|
80 | |||
81 | // Repository |
||
82 | $app['eccube.repository.master.authority'] = $app->share(function () use ($app) { |
||
83 | 228 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Authority'); |
|
84 | 1189 | }); |
|
85 | $app['eccube.repository.master.tag'] = $app->share(function () use ($app) { |
||
86 | 4 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Tag'); |
|
87 | 1189 | }); |
|
88 | $app['eccube.repository.master.pref'] = $app->share(function () use ($app) { |
||
89 | 404 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Pref'); |
|
90 | 1189 | }); |
|
91 | $app['eccube.repository.master.sex'] = $app->share(function () use ($app) { |
||
92 | 364 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Sex'); |
|
93 | 1189 | }); |
|
94 | $app['eccube.repository.master.disp'] = $app->share(function () use ($app) { |
||
95 | 333 | return $app['orm.em']->getRepository('Eccube\Entity\Master\Disp'); |
|
96 | 1189 | }); |
|
97 | $app['eccube.repository.master.product_type'] = $app->share(function () use ($app) { |
||
98 | 348 | return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductType'); |
|
99 | 1189 | }); |
|
100 | $app['eccube.repository.master.page_max'] = $app->share(function () use ($app) { |
||
101 | 24 | return $app['orm.em']->getRepository('Eccube\Entity\Master\PageMax'); |
|
102 | 1189 | }); |
|
103 | $app['eccube.repository.master.product_list_max'] = $app->share(function () use ($app) { |
||
104 | 3 | return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductListMax'); |
|
105 | 1189 | }); |
|
106 | $app['eccube.repository.master.product_list_order_by'] = $app->share(function () use ($app) { |
||
107 | 317 | return $app['orm.em']->getRepository('Eccube\Entity\Master\ProductListOrderBy'); |
|
108 | 1189 | }); |
|
109 | $app['eccube.repository.master.order_status'] = $app->share(function () use ($app) { |
||
110 | 30 | return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus'); |
|
111 | 1189 | }); |
|
112 | $app['eccube.repository.master.device_type'] = $app->share(function () use ($app) { |
||
113 | return $app['orm.em']->getRepository('Eccube\Entity\Master\DeviceType'); |
||
114 | 205 | }); |
|
115 | 1189 | $app['eccube.repository.master.csv_type'] = $app->share(function () use ($app) { |
|
116 | return $app['orm.em']->getRepository('Eccube\Entity\Master\CsvType'); |
||
117 | 320 | }); |
|
118 | 1189 | ||
119 | $app['eccube.repository.delivery'] = $app->share(function () use ($app) { |
||
120 | 230 | return $app['orm.em']->getRepository('Eccube\Entity\Delivery'); |
|
121 | 1189 | }); |
|
122 | $app['eccube.repository.delivery_date'] = $app->share(function () use ($app) { |
||
123 | return $app['orm.em']->getRepository('Eccube\Entity\DeliveryDate'); |
||
124 | 1189 | }); |
|
125 | $app['eccube.repository.delivery_fee'] = $app->share(function () use ($app) { |
||
126 | 245 | return $app['orm.em']->getRepository('Eccube\Entity\DeliveryFee'); |
|
127 | 1189 | }); |
|
128 | $app['eccube.repository.delivery_time'] = $app->share(function () use ($app) { |
||
129 | 2 | return $app['orm.em']->getRepository('Eccube\Entity\DeliveryTime'); |
|
130 | 1189 | }); |
|
131 | $app['eccube.repository.payment'] = $app->share(function () use ($app) { |
||
132 | 420 | return $app['orm.em']->getRepository('Eccube\Entity\Payment'); |
|
133 | 420 | }); |
|
134 | $app['eccube.repository.payment_option'] = $app->share(function () use ($app) { |
||
135 | 420 | return $app['orm.em']->getRepository('Eccube\Entity\PaymentOption'); |
|
136 | 1189 | }); |
|
137 | $app['eccube.repository.category'] = $app->share(function () use ($app) { |
||
138 | 375 | $CategoryRepository = $app['orm.em']->getRepository('Eccube\Entity\Category'); |
|
139 | 1189 | $CategoryRepository->setApplication($app); |
|
140 | |||
141 | 20 | return $CategoryRepository; |
|
142 | 1189 | }); |
|
143 | $app['eccube.repository.customer'] = $app->share(function () use ($app) { |
||
144 | 10 | return $app['orm.em']->getRepository('Eccube\Entity\Customer'); |
|
145 | 1189 | }); |
|
146 | $app['eccube.repository.news'] = $app->share(function () use ($app) { |
||
147 | 591 | return $app['orm.em']->getRepository('Eccube\Entity\News'); |
|
148 | 591 | }); |
|
149 | 591 | $app['eccube.repository.mail_history'] = $app->share(function () use ($app) { |
|
150 | 1189 | return $app['orm.em']->getRepository('Eccube\Entity\MailHistory'); |
|
151 | }); |
||
152 | $app['eccube.repository.member'] = $app->share(function () use ($app) { |
||
153 | 1189 | $memberRepository = $app['orm.em']->getRepository('Eccube\Entity\Member'); |
|
154 | $memberRepository->setEncoderFactorty($app['security.encoder_factory']); |
||
155 | 99 | return $memberRepository; |
|
156 | 99 | }); |
|
157 | $app['eccube.repository.order'] = $app->share(function () use ($app) { |
||
158 | 99 | return $app['orm.em']->getRepository('Eccube\Entity\Order'); |
|
159 | 1189 | }); |
|
160 | $app['eccube.repository.product'] = $app->share(function () use ($app) { |
||
161 | $productRepository = $app['orm.em']->getRepository('Eccube\Entity\Product'); |
||
162 | 1189 | $productRepository->setApplication($app); |
|
163 | |||
164 | 38 | return $productRepository; |
|
165 | 1189 | }); |
|
166 | $app['eccube.repository.product_image'] = $app->share(function () use ($app) { |
||
167 | return $app['orm.em']->getRepository('Eccube\Entity\ProductImage'); |
||
168 | 1189 | }); |
|
169 | $app['eccube.repository.product_class'] = $app->share(function () use ($app) { |
||
170 | return $app['orm.em']->getRepository('Eccube\Entity\ProductClass'); |
||
171 | 1189 | }); |
|
172 | $app['eccube.repository.product_stock'] = $app->share(function () use ($app) { |
||
173 | 351 | return $app['orm.em']->getRepository('Eccube\Entity\ProductStock'); |
|
174 | 1189 | }); |
|
175 | $app['eccube.repository.product_tag'] = $app->share(function () use ($app) { |
||
176 | 363 | return $app['orm.em']->getRepository('Eccube\Entity\ProductTag'); |
|
177 | 1189 | }); |
|
178 | $app['eccube.repository.class_name'] = $app->share(function () use ($app) { |
||
179 | 664 | return $app['orm.em']->getRepository('Eccube\Entity\ClassName'); |
|
180 | 1189 | }); |
|
181 | $app['eccube.repository.class_category'] = $app->share(function () use ($app) { |
||
182 | 790 | return $app['orm.em']->getRepository('Eccube\Entity\ClassCategory'); |
|
183 | 790 | }); |
|
184 | $app['eccube.repository.customer_favorite_product'] = $app->share(function () use ($app) { |
||
185 | 790 | return $app['orm.em']->getRepository('Eccube\Entity\CustomerFavoriteProduct'); |
|
186 | 1189 | }); |
|
187 | $app['eccube.repository.base_info'] = $app->share(function () use ($app) { |
||
188 | 274 | $BaseInfoRepository = $app['orm.em']->getRepository('Eccube\Entity\BaseInfo'); |
|
189 | 274 | $BaseInfoRepository->setApplication($app); |
|
190 | |||
191 | 274 | return $BaseInfoRepository; |
|
192 | 1189 | }); |
|
193 | $app['eccube.repository.tax_rule'] = $app->share(function () use ($app) { |
||
194 | 286 | $taxRuleRepository = $app['orm.em']->getRepository('Eccube\Entity\TaxRule'); |
|
195 | 286 | $taxRuleRepository->setApplication($app); |
|
196 | |||
197 | 286 | return $taxRuleRepository; |
|
198 | 1189 | }); |
|
199 | $app['eccube.repository.page_layout'] = $app->share(function () use ($app) { |
||
200 | 14 | $pageLayoutRepository = $app['orm.em']->getRepository('Eccube\Entity\PageLayout'); |
|
201 | 14 | $pageLayoutRepository->setApplication($app); |
|
202 | |||
203 | 14 | return $pageLayoutRepository; |
|
204 | 1189 | }); |
|
205 | $app['eccube.repository.block'] = $app->share(function () use ($app) { |
||
206 | 194 | $blockRepository = $app['orm.em']->getRepository('Eccube\Entity\Block'); |
|
207 | 194 | $blockRepository->setApplication($app); |
|
208 | |||
209 | 194 | return $blockRepository; |
|
210 | 1189 | }); |
|
211 | $app['eccube.repository.order'] = $app->share(function () use ($app) { |
||
212 | 140 | $orderRepository = $app['orm.em']->getRepository('Eccube\Entity\Order'); |
|
213 | 1189 | $orderRepository->setApplication($app); |
|
214 | |||
215 | 34 | return $orderRepository; |
|
216 | 1189 | }); |
|
217 | $app['eccube.repository.customer_address'] = $app->share(function () use ($app) { |
||
218 | 2 | return $app['orm.em']->getRepository('Eccube\Entity\CustomerAddress'); |
|
219 | 1189 | }); |
|
220 | $app['eccube.repository.shipping'] = $app->share(function () use ($app) { |
||
221 | 221 | return $app['orm.em']->getRepository('Eccube\Entity\Shipping'); |
|
222 | 1189 | }); |
|
223 | $app['eccube.repository.customer_status'] = $app->share(function () use ($app) { |
||
224 | 26 | return $app['orm.em']->getRepository('Eccube\Entity\Master\CustomerStatus'); |
|
225 | 1189 | }); |
|
226 | $app['eccube.repository.order_status'] = $app->share(function () use ($app) { |
||
227 | 8 | return $app['orm.em']->getRepository('Eccube\Entity\Master\OrderStatus'); |
|
228 | 1189 | }); |
|
229 | $app['eccube.repository.mail_template'] = $app->share(function () use ($app) { |
||
230 | 1 | return $app['orm.em']->getRepository('Eccube\Entity\MailTemplate'); |
|
231 | 1189 | }); |
|
232 | $app['eccube.repository.csv'] = $app->share(function () use ($app) { |
||
233 | 306 | return $app['orm.em']->getRepository('Eccube\Entity\Csv'); |
|
234 | 1189 | }); |
|
235 | $app['eccube.repository.template'] = $app->share(function () use ($app) { |
||
236 | return $app['orm.em']->getRepository('Eccube\Entity\Template'); |
||
237 | 43 | }); |
|
238 | 43 | $app['eccube.repository.authority_role'] = $app->share(function () use ($app) { |
|
239 | return $app['orm.em']->getRepository('Eccube\Entity\AuthorityRole'); |
||
240 | 43 | }); |
|
241 | 1189 | ||
242 | $app['paginator'] = $app->protect(function () { |
||
243 | $paginator = new \Knp\Component\Pager\Paginator(); |
||
244 | 10 | $paginator->subscribe(new \Eccube\EventListener\PaginatorListener()); |
|
245 | 1189 | ||
246 | return $paginator; |
||
247 | 8 | }); |
|
248 | 1189 | ||
249 | $app['eccube.repository.help'] = $app->share(function () use ($app) { |
||
250 | 3 | return $app['orm.em']->getRepository('Eccube\Entity\Help'); |
|
251 | 1189 | }); |
|
252 | $app['eccube.repository.plugin'] = $app->share(function () use ($app) { |
||
253 | 1189 | return $app['orm.em']->getRepository('Eccube\Entity\Plugin'); |
|
254 | }); |
||
255 | $app['eccube.repository.plugin_event_handler'] = $app->share(function () use ($app) { |
||
256 | 1189 | return $app['orm.em']->getRepository('Eccube\Entity\PluginEventHandler'); |
|
257 | 1189 | }); |
|
258 | 1189 | // em |
|
259 | 1189 | if (isset($app['orm.em'])) { |
|
260 | $app['orm.em'] = $app->share($app->extend('orm.em', function (\Doctrine\ORM\EntityManager $em, \Silex\Application $app) { |
||
261 | // tax_rule |
||
262 | 1189 | $taxRuleRepository = $em->getRepository('Eccube\Entity\TaxRule'); |
|
263 | 1189 | $taxRuleRepository->setApplication($app); |
|
264 | $taxRuleService = new \Eccube\Service\TaxRuleService($taxRuleRepository); |
||
0 ignored issues
–
show
$taxRuleRepository of type object<Doctrine\ORM\EntityRepository> is not a sub-type of object<Eccube\Repository\TaxRuleRepository> . It seems like you assume a child class of the class Doctrine\ORM\EntityRepository to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
265 | $em->getEventManager()->addEventSubscriber(new \Eccube\Doctrine\EventSubscriber\TaxRuleEventSubscriber($taxRuleService)); |
||
266 | 1189 | ||
267 | 1189 | // save |
|
268 | $saveEventSubscriber = new \Eccube\Doctrine\EventSubscriber\SaveEventSubscriber($app); |
||
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
269 | $em->getEventManager()->addEventSubscriber($saveEventSubscriber); |
||
270 | 1189 | ||
271 | 1189 | // clear cache |
|
272 | 1189 | $clearCacheEventSubscriber = new \Eccube\Doctrine\EventSubscriber\ClearCacheEventSubscriber($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
273 | 1189 | $em->getEventManager()->addEventSubscriber($clearCacheEventSubscriber); |
|
274 | 1189 | ||
275 | // filters |
||
276 | 1189 | $config = $em->getConfiguration(); |
|
277 | 1189 | $config->addFilter("soft_delete", '\Eccube\Doctrine\Filter\SoftDeleteFilter'); |
|
278 | $config->addFilter("nostock_hidden", '\Eccube\Doctrine\Filter\NoStockHiddenFilter'); |
||
279 | $config->addFilter("incomplete_order_status_hidden", '\Eccube\Doctrine\Filter\OrderStatusFilter'); |
||
280 | $em->getFilters()->enable('soft_delete'); |
||
281 | |||
282 | 663 | return $em; |
|
283 | 663 | })); |
|
284 | } |
||
285 | 663 | ||
286 | 1189 | // Form\Type |
|
287 | 1189 | $app['form.type.extensions'] = $app->share($app->extend('form.type.extensions', function ($extensions) use ($app) { |
|
288 | 663 | $extensions[] = new \Eccube\Form\Extension\HelpTypeExtension(); |
|
289 | 663 | $extensions[] = new \Eccube\Form\Extension\FreezeTypeExtension(); |
|
290 | 663 | ||
291 | 663 | return $extensions; |
|
292 | 663 | })); |
|
293 | 663 | $app['form.types'] = $app->share($app->extend('form.types', function ($types) use ($app) { |
|
294 | 663 | $types[] = new \Eccube\Form\Type\NameType($app['config']); |
|
295 | 663 | $types[] = new \Eccube\Form\Type\KanaType($app['config']); |
|
296 | 663 | $types[] = new \Eccube\Form\Type\TelType($app['config']); |
|
297 | $types[] = new \Eccube\Form\Type\FaxType(); // 削除予定 |
||
298 | 663 | $types[] = new \Eccube\Form\Type\ZipType($app['config']); |
|
299 | 663 | $types[] = new \Eccube\Form\Type\AddressType($app['config']); |
|
300 | 663 | $types[] = new \Eccube\Form\Type\RepeatedEmailType(); |
|
301 | 663 | $types[] = new \Eccube\Form\Type\RepeatedPasswordType($app['config']); |
|
302 | 663 | $types[] = new \Eccube\Form\Type\PriceType($app['config']); |
|
303 | 663 | ||
304 | 663 | $types[] = new \Eccube\Form\Type\MasterType(); |
|
305 | 663 | $types[] = new \Eccube\Form\Type\Master\JobType(); |
|
306 | 663 | $types[] = new \Eccube\Form\Type\Master\CustomerStatusType(); |
|
307 | 663 | $types[] = new \Eccube\Form\Type\Master\OrderStatusType(); |
|
308 | 663 | $types[] = new \Eccube\Form\Type\Master\CalcRuleType(); |
|
309 | 663 | $types[] = new \Eccube\Form\Type\Master\SexType(); |
|
310 | 663 | $types[] = new \Eccube\Form\Type\Master\DispType(); |
|
311 | 663 | $types[] = new \Eccube\Form\Type\Master\PrefType(); |
|
312 | 663 | $types[] = new \Eccube\Form\Type\Master\ProductTypeType(); |
|
313 | 663 | $types[] = new \Eccube\Form\Type\Master\ProductListMaxType(); |
|
314 | 663 | $types[] = new \Eccube\Form\Type\Master\ProductListOrderByType(); |
|
315 | 663 | $types[] = new \Eccube\Form\Type\Master\PageMaxType(); |
|
316 | $types[] = new \Eccube\Form\Type\Master\CsvType(); |
||
317 | 663 | $types[] = new \Eccube\Form\Type\Master\DeliveryDateType(); |
|
318 | $types[] = new \Eccube\Form\Type\Master\PaymentType(); |
||
319 | 663 | $types[] = new \Eccube\Form\Type\Master\MailTemplateType(); |
|
320 | 663 | $types[] = new \Eccube\Form\Type\Master\CategoryType(); |
|
321 | $types[] = new \Eccube\Form\Type\Master\TagType(); |
||
322 | 663 | ||
323 | 663 | $types[] = new \Eccube\Form\Type\CustomerType($app); // 削除予定 |
|
324 | 663 | ||
325 | 663 | if (isset($app['security']) && isset($app['eccube.repository.customer_favorite_product'])) { |
|
326 | 663 | $types[] = new \Eccube\Form\Type\AddCartType($app['config'], $app['security'], $app['eccube.repository.customer_favorite_product']); |
|
327 | 663 | } |
|
328 | 663 | $types[] = new \Eccube\Form\Type\SearchProductType($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
329 | $types[] = new \Eccube\Form\Type\SearchProductBlockType($app); |
||
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
330 | $types[] = new \Eccube\Form\Type\OrderSearchType($app); |
||
331 | 663 | $types[] = new \Eccube\Form\Type\ShippingItemType($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
332 | 663 | $types[] = new \Eccube\Form\Type\ShippingMultipleType($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
333 | 663 | $types[] = new \Eccube\Form\Type\ShippingMultipleItemType($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
334 | 663 | $types[] = new \Eccube\Form\Type\ShoppingType(); |
|
335 | 663 | ||
336 | 663 | // front |
|
337 | 663 | $types[] = new \Eccube\Form\Type\Front\EntryType($app['config']); |
|
338 | $types[] = new \Eccube\Form\Type\Front\ContactType($app['config']); |
||
339 | $types[] = new \Eccube\Form\Type\Front\NonMemberType($app['config']); |
||
340 | 663 | $types[] = new \Eccube\Form\Type\Front\ShoppingShippingType(); |
|
341 | 663 | $types[] = new \Eccube\Form\Type\Front\CustomerAddressType($app['config']); |
|
342 | 663 | $types[] = new \Eccube\Form\Type\Front\ForgotType(); |
|
343 | 663 | $types[] = new \Eccube\Form\Type\Front\CustomerLoginType($app['session']); |
|
344 | 663 | ||
345 | 663 | // admin |
|
346 | 663 | $types[] = new \Eccube\Form\Type\Admin\LoginType($app['session']); |
|
347 | 663 | $types[] = new \Eccube\Form\Type\Admin\ChangePasswordType($app); |
|
348 | 663 | $types[] = new \Eccube\Form\Type\Admin\ProductType($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
349 | 663 | $types[] = new \Eccube\Form\Type\Admin\ProductClassType($app); |
|
350 | 663 | $types[] = new \Eccube\Form\Type\Admin\SearchProductType($app); |
|
351 | 663 | $types[] = new \Eccube\Form\Type\Admin\SearchCustomerType($app['config']); |
|
352 | 663 | $types[] = new \Eccube\Form\Type\Admin\SearchOrderType($app['config']); |
|
353 | 663 | $types[] = new \Eccube\Form\Type\Admin\CustomerType($app['config']); |
|
354 | 663 | $types[] = new \Eccube\Form\Type\Admin\ClassNameType($app['config']); |
|
355 | 663 | $types[] = new \Eccube\Form\Type\Admin\ClassCategoryType($app['config']); |
|
356 | 663 | $types[] = new \Eccube\Form\Type\Admin\CategoryType($app['config']); |
|
357 | 663 | $types[] = new \Eccube\Form\Type\Admin\MemberType($app['config']); |
|
358 | 663 | $types[] = new \Eccube\Form\Type\Admin\AuthorityRoleType($app['config']); |
|
359 | 663 | $types[] = new \Eccube\Form\Type\Admin\PageLayoutType(); |
|
360 | 663 | $types[] = new \Eccube\Form\Type\Admin\NewsType($app['config']); |
|
361 | 663 | $types[] = new \Eccube\Form\Type\Admin\TemplateType($app['config']); |
|
362 | 663 | $types[] = new \Eccube\Form\Type\Admin\SecurityType($app); |
|
363 | 663 | $types[] = new \Eccube\Form\Type\Admin\CsvImportType($app); |
|
364 | 663 | $types[] = new \Eccube\Form\Type\Admin\ShopMasterType($app['config']); |
|
365 | 663 | $types[] = new \Eccube\Form\Type\Admin\TradelawType($app['config']); |
|
366 | 663 | $types[] = new \Eccube\Form\Type\Admin\OrderType($app); |
|
367 | 663 | $types[] = new \Eccube\Form\Type\Admin\OrderDetailType($app); |
|
368 | 663 | $types[] = new \Eccube\Form\Type\Admin\ShippingType($app); |
|
0 ignored issues
–
show
$app of type object<Silex\Application> is not a sub-type of object<Eccube\Application> . It seems like you assume a child class of the class Silex\Application to be always present.
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass. Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.
Loading history...
|
|||
369 | 663 | $types[] = new \Eccube\Form\Type\Admin\ShipmentItemType($app); |
|
370 | 663 | $types[] = new \Eccube\Form\Type\Admin\PaymentRegisterType($app); |
|
371 | 663 | $types[] = new \Eccube\Form\Type\Admin\TaxRuleType(); |
|
372 | 663 | $types[] = new \Eccube\Form\Type\Admin\MainEditType($app); |
|
373 | 663 | $types[] = new \Eccube\Form\Type\Admin\MailType(); |
|
374 | 663 | $types[] = new \Eccube\Form\Type\Admin\CustomerAgreementType($app); |
|
375 | $types[] = new \Eccube\Form\Type\Admin\BlockType($app); |
||
376 | 663 | $types[] = new \Eccube\Form\Type\Admin\DeliveryType(); |
|
377 | 663 | $types[] = new \Eccube\Form\Type\Admin\DeliveryFeeType(); |
|
378 | 663 | $types[] = new \Eccube\Form\Type\Admin\DeliveryTimeType($app['config']); |
|
379 | $types[] = new \Eccube\Form\Type\Admin\LogType($app['config']); |
||
380 | 663 | $types[] = new \Eccube\Form\Type\Admin\CacheType($app['config']); |
|
381 | 663 | ||
382 | $types[] = new \Eccube\Form\Type\Admin\MasterdataType($app); |
||
383 | 663 | $types[] = new \Eccube\Form\Type\Admin\MasterdataDataType($app); |
|
384 | 1189 | $types[] = new \Eccube\Form\Type\Admin\MasterdataEditType($app); |
|
385 | |||
386 | $types[] = new \Eccube\Form\Type\Admin\PluginLocalInstallType(); |
||
387 | $types[] = new \Eccube\Form\Type\Admin\PluginManagementType(); |
||
388 | |||
389 | return $types; |
||
390 | })); |
||
391 | } |
||
392 | |||
393 | /** |
||
394 | * Bootstraps the application. |
||
395 | * |
||
396 | * This method is called after all services are registered |
||
397 | * and should be used for "dynamic" configuration (whenever |
||
398 | * a service must be requested). |
||
399 | */ |
||
400 | public function boot(BaseApplication $app) |
||
401 | { |
||
402 | } |
||
403 | } |
||
404 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.