xinix-technology/bono-norm

Norm glue code for Bono

1.1.0 2018-07-31 08:41 UTC

This package is not auto-updated.

Last update: 2024-05-01 17:24:03 UTC


README

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.