芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/libraries.8/vendor/joomla/database/src/Service/DatabaseProvider.php
alias(DatabaseInterface::class, DatabaseDriver::class) ->share( DatabaseDriver::class, function (Container $container) { /** @var \Joomla\Registry\Registry $config */ $config = $container->get('config'); $options = (array) $config->get('database'); return $container->get(DatabaseFactory::class)->getDriver($options['driver'], $options); } ); $container->share( DatabaseFactory::class, function (Container $container) { return new DatabaseFactory; } ); } }