Completed
Push — master ( 1915ce...cbef56 )
by Biao
10:02
created

LaravelTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initLaravel() 0 6 1
1
<?php
2
3
namespace Hhxsv5\LaravelS\Illuminate;
4
5
use Swoole\Http\Server;
6
7
trait LaravelTrait
8
{
9
    protected function initLaravel(array $conf, Server $swoole)
10
    {
11
        $laravel = new Laravel($conf);
12
        $laravel->prepareLaravel();
13
        $laravel->bindSwoole($swoole);
14
        return $laravel;
15
    }
16
}