BreadcrumbsServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of vaibhavpandeyvpz/pimple-breadcrumbs package.
5
 *
6
 * (c) Vaibhav Pandey <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.md.
10
 */
11
12
namespace Pimple\Breadcrumbs;
13
14
use Pimple\Container;
15
use Pimple\ServiceProviderInterface;
16
17
/**
18
 * Class BreadcrumbsServiceProvider
19
 * @package Pimple\Breadcrumbs
20
 */
21
class BreadcrumbsServiceProvider implements ServiceProviderInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function register(Container $pimple)
27
    {
28
        $pimple['breadcrumbs'] = function () {
29
            return new Breadcrumbs();
30
        };
31
    }
32
}
33