Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 727 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 727 Bytes

bono-norm

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.

How to Use

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.