Completed
Push — master ( 70dfc9...fb2e0c )
by Michael
03:05
created

PimpleContainer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * This file is a simple wrapper for Pimple so Yapeal is future proofed against
4
 * changes to it's API.
5
 *
6
 * PHP version 5.5
7
 *
8
 * This is a wrapper / adapter to Pimple. Ran into many problems in composer
9
 * etc with trying to use version 2.0.x or master from Pimple as most other
10
 * projects on Packagest require 1.1.x and there was no way to resolved the
11
 * conflicts.
12
 *
13
 * Original the way I (Michael Cummings) thought of to solve the conflict was
14
 * to just add copy of the Pimple file from version 2.0.0 into Yapeal itself
15
 * but did mean having to maintain it from then on and manually merging any
16
 * local changes with external ones from the main project which is NOT a good
17
 * long term way to do things.
18
 *
19
 * I decided I need a better solution and after a few weeks of looking at
20
 * submodules and the drawbacks with them I decided they would NOT work, but
21
 * did ran into ```git subtree``` which does seem to fit in to what was needed
22
 * and does NOT have the drawbacks that submodules had.
23
 *
24
 * This file is part of Yet Another Php Eve Api Library also know as Yapeal
25
 * which can be used to access the Eve Online API data and place it into a
26
 * database.
27
 * Copyright (C) 2014-2016 Michael Cummings
28
 *
29
 * This program is free software: you can redistribute it and/or modify it
30
 * under the terms of the GNU Lesser General Public License as published by the
31
 * Free Software Foundation, either version 3 of the License, or (at your
32
 * option) any later version.
33
 *
34
 * This program is distributed in the hope that it will be useful, but WITHOUT
35
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
36
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
37
 * for more details.
38
 *
39
 * You should have received a copy of the GNU Lesser General Public License
40
 * along with this program. If not, see
41
 * <http://www.gnu.org/licenses/>.
42
 *
43
 * You should be able to find a copy of this license in the LICENSE.md file. A
44
 * copy of the GNU GPL should also be available in the GNU-GPL.md file.
45
 *
46
 * @copyright 2014-2016 Michael Cummings
47
 * @license   http://www.gnu.org/copyleft/lesser.html GNU LGPL
48
 * @author    Michael Cummings <[email protected]>
49
 */
50
namespace Yapeal\Container;
51
52
use Pimple\Container;
53
54
/**
55
 * PimpleContainer class.
56
 *
57
 * @author Michael Cummings <[email protected]>
58
 * @since  1.1.x-WIP
59
 */
60
class PimpleContainer extends Container implements ContainerInterface
61
{
62
    /**
63
     * Instantiate the container.
64
     *
65
     * Objects and parameters can be passed as argument to the constructor.
66
     *
67
     * @param array $values The parameters or objects.
68
     */
69
    public function __construct(array $values = [])
70
    {
71
        parent::__construct($values);
72
    }
73
}
74