Completed
Pull Request — 1.x (#214)
by Yuu
03:24 queued 55s
created

ApiModule::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037
Metric Value
dl 0
loc 4
ccs 2
cts 3
cp 0.6667
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1.037
1
<?php
2
/**
3
 * This file is part of the BEAR.Package package.
4
 *
5
 * @license http://opensource.org/licenses/MIT MIT
6
 */
7
namespace BEAR\Package\Context;
8
9
use BEAR\Sunday\Annotation\DefaultSchemeHost;
10
use Ray\Di\AbstractModule;
11
12
class ApiModule extends AbstractModule
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 1
    protected function configure()
18
    {
19
        $this->bind()->annotatedWith(DefaultSchemeHost::class)->toInstance('app://self');
20 1
    }
21
}
22