Completed
Push — experimental/3.1 ( 777914...cb54a4 )
by chihiro
27s
created

QueryCustomizeServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
1
<?php
2
3
namespace Plugin\QueryCustomize\ServiceProvider;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
use Plugin\QueryCustomize\Entity\AdminCustomerCustomizer;
8
use Silex\Api\BootableProviderInterface;
9
use Silex\Application;
10
11
class QueryCustomizeServiceProvider implements ServiceProviderInterface, BootableProviderInterface
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
12
{
13
    public function register(Container $app)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
14
    {
15
        $app['plugin.query_customize.customer_search'] = function (Container $container) {
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
            return new AdminCustomerCustomizer();
17
        };
18
    }
19
20
    public function boot(Application $app)
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
21
    {
22
        $app['eccube.queries']
23
            ->addCustomizer($app['plugin.query_customize.customer_search']);
24
    }
25
}
26