2017 © Pedro Peláez
 

symfony-bundle darvin-config-bundle

This bundle provides configuration layer for Symfony-based applications.

image

darvinstudio/darvin-config-bundle

This bundle provides configuration layer for Symfony-based applications.

  • Thursday, February 15, 2018
  • by darvinstudio
  • Repository
  • 3 Watchers
  • 0 Stars
  • 1,665 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 6 % Grown

The README.md

DarvinConfigBundle

This bundle provides configuration layer for Symfony-based applications., (*1)

Usage

Create class which implements Darvin\ConfigBundle\Configuration\ConfigurationInterface or extends Darvin\ConfigBundle\Configuration\AbstractConfiguration:, (*2)

// AppBundle\Config\AppConfig.php

use Darvin\ConfigBundle\Configuration\AbstractConfiguration;
use Darvin\ConfigBundle\Parameter\ParameterModel;

class AppConfig extends AbstractConfiguration
{
    public function getModel(): iterable
    {
        yield new ParameterModel('array_var', ParameterModel::TYPE_ARRAY, array(1, 2, 3));
        yield new ParameterModel('boolean_var', ParameterModel::TYPE_BOOL, false);
        yield new ParameterModel('integer_var', ParameterModel::TYPE_INTEGER, 777);
        yield new ParameterModel('string_var', ParameterModel::TYPE_STRING, 'test123');
    }
}

Define created class as a service tagged with "darvin_config.configuration" tag:, (*3)

services:
    app.config:
        class: AppBundle\Config\AppConfig
        tags:
            - { name: darvin_config.configuration }

The Versions

15/02 2018

dev-master

9999999-dev

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

15/02 2018

5.1.1

5.1.1.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

08/12 2017

5.1.0

5.1.0.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

01/08 2017

5.0.7

5.0.7.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

25/05 2017

5.0.6

5.0.6.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

07/04 2017

5.0.5

5.0.5.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

04/04 2017

5.0.4

5.0.4.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

23/01 2017

5.0.3

5.0.3.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

09/01 2017

5.0.2

5.0.2.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

09/11 2016

5.0.1

5.0.1.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration

07/11 2016

5.0.0

5.0.0.0

This bundle provides configuration layer for Symfony-based applications.

  Sources   Download

MIT

The Requires

 

configuration