earc/data-default-setup

eArc - the explicit architecture framework - default setup for the data component

0.0 2021-04-10 13:43 UTC

This package is auto-updated.

Last update: 2024-05-10 20:24:05 UTC


README

This package bundles the following bridges for the earc/data abstraction:

installation

Install the earc/data-default-setup library via composer.

$ composer require earc/data-default-setup

basic usage

Initialize the earc/data abstraction and the default setup in your index.php, bootstrap or configuration script.

use eArc\DataDefaultSetup\Initializer;

Initializer::init();

Check the ParameterInterface for optional parameters that can be set via earc/di. For example the redis connection.

use eArc\DataDefaultSetup\ParameterInterface;

$redisConnection = ['127.0.0.1', 6379];

di_set_param(ParameterInterface::REDIS_CONNECTION, $redisConnection);
di_set_param(ParameterInterface::KEY_GENERATOR_REDIS_CONNECTION, $redisConnection);

You may use for data/redis and earc/data-primary-key-generator different redis servers. Thus, you have to set it twice.

releases

release 0.0

  • first official release