Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function __construct(Container $container) |
||
35 | { |
||
36 | $this->container = $container; |
||
37 | if ($container->hasParameter('db_config_loaded')) { |
||
38 | $this->PDO = new \PDO( |
||
39 | sprintf( |
||
40 | "mysql:host=%s;port=%s;dbname=%s", |
||
41 | $container->getParameter('db_host'), |
||
42 | $container->getParameter('db_port'), |
||
43 | $container->getParameter('db_name') |
||
44 | ), |
||
45 | $container->getParameter('db_user'), |
||
46 | $container->getParameter('db_passw') |
||
47 | ); |
||
48 | |||
49 | parent::__construct($this->PDO); |
||
50 | } |
||
52 | } |