Skip to content

Commit

Permalink
Update AdapterPool.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdearaujo committed Nov 16, 2017
1 parent 6afeb6d commit f4c35af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Silk/Database/AdapterPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Zend\Db\Adapter\Adapter;
use Zend\Db\TableGateway\TableGateway;
use Zend\Db\TableGateway\Feature\GlobalAdapterFeature;

/**
* AdapterPool
Expand All @@ -20,6 +21,15 @@ class AdapterPool
*/
protected static $pool = [];

/**
* Construtor
*/
public function __construct()
{
// Conexão com o MySQL
$this->add('Default', GlobalAdapterFeature::getStaticAdapter());
}

/**
* @param $key
* @param Adapter $adapter
Expand Down

0 comments on commit f4c35af

Please sign in to comment.