Failed Conditions
Pull Request — experimental/sf (#3236)
by Kentaro
144:19 queued 116:23
created

FormExtensionServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Plugin\FormExtension\ServiceProvider;
15
16
use Pimple\Container;
17
use Pimple\ServiceProviderInterface;
18
use Plugin\FormExtension\Form\Extension\EntryTypeExtension;
19
20
class FormExtensionServiceProvider implements ServiceProviderInterface
21
{
22
    public function register(Container $app)
23
    {
24
        $app->extend(
25
            'form.type.extensions',
26
            function ($extensions) {
27
                $extensions[] = new EntryTypeExtension();
28
29
                return $extensions;
30
            }
31
        );
32
    }
33
}
34