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
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-11-26 16:20: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();