If you want to use Bono 2 as your web application development framework, and you need database access. Best chance that you need Norm. This library is best breed to integrate between Bono 2 and Norm 2.
Prepare Norm repository using bono-norm middleware, add BonoNorm\Middleware
to Bono bundle middlewares configuration section or config/config.php
file.
return [
"middlewares": [
[ BonoNorm\Middleware::class, [
"options" => [
"connections" => [...],
"collections" => [...],
"attributes" => [...],
]
]]
]
];
This DSL is comply to ROH\Util\Injector
accepted DSL.