Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Kvberlin\Database;
- class DbServiceFactory implements FactoryInterface
- {
- public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
- {
- //Einlesen der verfügbaren Datenbankverbindungen.
- $config = Factory::fromFile(MODULE_KVBERLIN_ROOT.'/config/db.kvberlin.config.php');
- //Debug::dump($config);
- return new DbService($config['db_service']);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement