2017 © Pedro Peláez
 

library dependencyinjectionserviceprovider

Dependency injection service provider for Silex

image

mparaiso/dependencyinjectionserviceprovider

Dependency injection service provider for Silex

  • Sunday, March 24, 2013
  • by Mparaiso
  • Repository
  • 0 Watchers
  • 1 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Dependency injection service provider for Silex

author: MParaiso contact: mparaiso@online.fr status: Work in Progress, (*1)

Configuration

    use Mparaiso\Provider\DependencyInjectionServiceProvider;

    $app->register(new DependencyInjectionServiceProvider,array(
       /* cache configuration (path and a cache class name */
       "di.cache"=>array("path"=>__DIR__."/../cache/","class"=>"MyCacheClass"),
       /* external variables ( db config , environment variables .... */
       "di.params"=>array(
           "app.root_dir"=>__DIR__,
           "app.debug"=>$app["debug"],
           "app.host"=>getenv("SYMFONY__SHORTEN__HOST"),
           "app.driver"=>"pdo_mysql",
           "app.user"=>getenv("SYMFONY__SHORTEN__USER"),
           "app.password"=>getenv("SYMFONY__SHORTEN__PASSWORD"),
           "app.dbname"=>getenv("SYMFONY__SHORTEN__DBNAME"),
           "app.port"=>getenv("SYMFONY__SHORTEN__PORT"),
           ),
       /* loader type (yaml,annotaions,xml) and file path */
       "di.loader.options"=>array(
           "type"=>"yaml",
           "path"=>__DIR__."/Shorten/Resources/services/config.yml",
           )
       )
    );

Usage

    $app["di"]->get("myservice");

The Versions

24/03 2013

dev-master

9999999-dev https://github.com/Mparaiso/dependencyinjectionserviceprovider

Dependency injection service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Mparaiso

extensions container silex dependency-injection

24/03 2013

0.0.2

0.0.2.0 https://github.com/Mparaiso/dependencyinjectionserviceprovider

Dependency injection service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Mparaiso

extensions container silex dependency-injection

24/03 2013

0.0.1

0.0.1.0 https://github.com/Mparaiso/dependencyinjectionserviceprovider

Dependency injection service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar Mparaiso

extensions container silex dependency-injection