Passed
Push — master ( 6f4616...466e1a )
by Mike
02:15
created

WebFacade::executeRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Xervice\Web;
5
6
7
use Symfony\Component\HttpFoundation\Request;
8
use Xervice\Core\Facade\AbstractFacade;
9
10
/**
11
 * @method \Xervice\Web\WebFactory getFactory()
12
 */
13
class WebFacade extends AbstractFacade
14
{
15
    public function initWebRouting(): void
16
    {
17
        $this->getFactory()->createRouteProvider()->provideRoutings();
18
    }
19
20
    /**
21
     * @param string $url
22
     *
23
     * @throws \Xervice\Web\Business\Exception\WebExeption
24
     */
25 2
    public function executeUrl(string $url): void
26
    {
27 2
        $this->getFactory()->createExecutionProvider()->executeUrl($url);
28 2
    }
29
30
    /**
31
     * @param \Symfony\Component\HttpFoundation\Request $request
32
     *
33
     * @throws \Xervice\Web\Business\Exception\WebExeption
34
     */
35
    public function executeRequest(Request $request): void
36
    {
37
        $this->getFactory()->createExecutionProvider()->executeRequest($request);
38
    }
39
40
    /**
41
     * @throws \Xervice\Web\Business\Exception\WebExeption
42
     */
43
    public function execute(): void
44
    {
45
        $this->getFactory()->createExecutionProvider()->execute();
46
    }
47
}