Version 3.0
New technologies
This commit is contained in:
14
api/setup/setups/02_database.php
Normal file
14
api/setup/setups/02_database.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
return [
|
||||
\Common\Concept\Database::class => function(ContainerInterface $container) {
|
||||
$settings = $container->get('databases')->default;
|
||||
return new \Contabilidad\Implement\Database\MySQL(
|
||||
$settings->host->name,
|
||||
$settings->user->name,
|
||||
$settings->user->password,
|
||||
$settings->name
|
||||
);
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user