Issues (3006)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

Eccube/ServiceProvider/EccubeServiceProvider.php (19 issues)

Upgrade to new PHP Analysis Engine

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
0 ignored issues
show
Missing class doc comment
Loading history...
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 1088
    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
$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...
46 1088
        });
47
        $app['view'] = $app->share(function () use ($app) {
48
            return $app['twig'];
49 1088
        });
50
        $app['eccube.service.cart'] = $app->share(function () use ($app) {
51 182
            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 1088
        });
53
        $app['eccube.service.order'] = $app->share(function () use ($app) {
54 65
            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...
Deprecated Code introduced by
The class Eccube\Service\OrderService has been deprecated with message: since 3.0.0, to be removed in 3.1

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

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