TestApplication   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 4 1
A shareContainer() 0 4 1
1
<?php
2
3
namespace Spiral\Tests;
4
5
use Interop\Container\ContainerInterface;
6
use Spiral\Core\Bootloaders\SpiralBindings;
7
use Spiral\Core\Core;
8
9
/**
10
 * @property \Spiral\Core\MemoryInterface             $memory
11
 * @property \Spiral\Core\ContainerInterface          $container
12
 * @property \Spiral\Debug\LogsInterface              $logs
13
 * @property \Spiral\Http\HttpDispatcher              $http
14
 * @property \Spiral\Console\ConsoleDispatcher        $console
15
 * @property \Spiral\Files\FilesInterface             $files
16
 * @property \Spiral\Tokenizer\TokenizerInterface     $tokenizer
17
 * @property \Spiral\Tokenizer\ClassesInterface       $locator
18
 * @property \Spiral\Tokenizer\InvocationsInterface   $invocationLocator
19
 * @property \Spiral\Views\ViewManager                $views
20
 * @property \Spiral\Translator\Translator            $translator
21
 * @property \Spiral\Database\DatabaseManager         $dbal
22
 * @property \Spiral\ORM\ORM                          $orm
23
 * @property \Spiral\Encrypter\EncrypterInterface     $encrypter
24
 * @property \Spiral\Database\Entities\Database       $db
25
 * @property \Spiral\Http\Cookies\CookieQueue         $cookies
26
 * @property \Spiral\Http\Routing\RouterInterface     $router
27
 * @property \Spiral\Pagination\PaginatorsInterface   $paginators
28
 * @property \Psr\Http\Message\ServerRequestInterface $request
29
 * @property \Spiral\Http\Request\InputManager        $input
30
 * @property \Spiral\Http\Response\ResponseWrapper    $response
31
 * @property \Spiral\Http\Routing\RouteInterface      $route
32
 * @property \Spiral\Security\PermissionsInterface    $permissions
33
 * @property \Spiral\Security\RulesInterface          $rules
34
 * @property \Spiral\Security\ActorInterface          $actor
35
 */
36
class TestApplication extends Core
37
{
38
    const LOAD = [SpiralBindings::class];
39
40
    protected function bootstrap()
41
    {
42
        //Nothing to do
43
    }
44
45
    /**
46
     * @param ContainerInterface $container
47
     *
48
     * @return ContainerInterface|null
49
     */
50
    public static function shareContainer(ContainerInterface $container = null)
51
    {
52
        return self::staticContainer($container);
53
    }
54
}