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 auto-updated.

Last update: 2024-10-26 16:10:25 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();