neemzy/environ-service-provider

There is no license information available for the latest version (dev-master) of this package.

Environ service provider for Silex micro-framework

dev-master 2014-10-16 07:01 UTC

This package is not auto-updated.

Last update: 2021-02-15 08:23:39 UTC


README

Environ service provider for Silex micro-framework

Usage

use Neemzy\Silex\Provider\EnvironServiceProvider;
use Neemzy\Environ\Environment;

$app = new Silex\Application();

$app->register(
    new EnvironServiceProvider(
        [
            'env' => new Environment(
                function () {
                    // condition closure
                },
                function () {
                    // callback closure
                }
            )
        ]
    ),
);

$app->run();