Completed
Push — master ( b58116...9afd96 )
by Cheren
08:23
created

Container::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * CakeCMS Core
4
 *
5
 * This file is part of the of the simple cms based on CakePHP 3.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package   Core
10
 * @license   MIT
11
 * @copyright MIT License http://www.opensource.org/licenses/mit-license.php
12
 * @link      https://github.com/CakeCMS/Core".
13
 * @author    Sergey Kalistratov <[email protected]>
14
 */
15
16
namespace Core;
17
18
use Pimple\Container as PimpleContainer;
19
20
/**
21
 * Class Container
22
 *
23
 * @package Core
24
 */
25
class Container extends PimpleContainer
26
{
27
28
    /**
29
     * Hold CMS instance.
30
     *
31
     * @var Cms
32
     */
33
    public $app;
34
35
    /**
36
     * Container constructor.
37
     *
38
     * @param array $values
39
     */
40
    public function __construct(array $values = [])
41
    {
42
        parent::__construct($values);
43
        $this->app = Cms::getInstance();
44
    }
45
}
46