yeephp/yeephp

View on GitHub
Yee/Managers/DatabaseManager.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Yee\Managers;

use \Yee\Yee;

class DatabaseManager extends Yee 
{
    protected $config;
    
    /**
     * @param array $options
     */
    function __construct()
    {
        $app = \Yee\Yee::getInstance();
        $this->config = $app->config('database');
        
        foreach( $this->config as $key => $database )
        {
             $app->db[$key] = new MysqliDB( $database['database.host'], $database['database.user'], $database['database.pass'], $database['database.name'], $database['database.port'] );
        }    
        
        
    }



}