Smalldb Symfony Bundle
v2.0
|
Symfony bundle for Smalldb.
Smalldb Symfony Bundle integrates libSmalldb into Symfony framework, including the Security subsystem. It also provides convenient configuration and optional REST API.
First, add the bundle into your composer.json
:
Then register the bundle in your app/AppKernel.php
:
Finally, configure the bundle — app/config/config.yml
:
… and enable authentication listener in app/config/security.yml
:
REST API can be enabled using predefined routes — app/config/routing.yml
:
Smaldb Symfony bundle registers JsonDirBackend
as smalldb
service.
Therefore you may use `$this->get('smalldb')to retrieve Smalldb backend in your controllers, or better inject it using
@smalldb` identifier in the configuration files.
See https://smalldb.org/doc/smalldb-symfony-bundle/master/
The most of the code is published under Apache 2.0 license. See LICENSE file for details.
Project's primary repository is hosted at https://git.frozen-doe.net/smalldb/smalldb-symfony-bundle, feel free to submit issues there or create merge requests.