2017 © Pedro PelĂĄez
 

library container-checker

Symfony2 DI-Container Checker

image

digitalkaoz/container-checker

Symfony2 DI-Container Checker

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Container-Checker

This small Library checks various aspects of a Symfony2 DI-Container., (*1)

Installation

let composer do the job:, (*2)

$ composer require digitalkaoz/container-checker

or edit your composer.json manually:, (*3)

"require" : {
    "digitalkaoz/container-checker" : "*"
}

Usage

You can check services or parameters of your DI-Container. Services will be checked if they could be getted from the Container. Parameters which looks like ClassNames will be checked if they can be autoloaded., (*4)

Here are a few use cases:, (*5)

Check Instanciation of all Services, (*6)

$ bin/checker.php check:services path/to/your/AppKernel.php

or with different Environments and Scopes:, (*7)

$ bin/checker.php check:services path/to/your/AppKernel.php -env=prod --scope=request

Check if all Parameters which are Class-Names can be autoloaded, (*8)

$ bin/checker.php check:parameters path/to/your/AppKernel.php

or with different Environments:, (*9)

$ bin/checker.php check:parameters path/to/your/AppKernel.php -env=prod

Test

Nothing to see here, move along ;), (*10)

TODO

  • some tests
  • grep the autoloader of the loaded Kernel and ask there for a autoloadable class insteat of class_exists
  • some more sanity checks
  • Portable for other Containers (e.g. ZendDI)

The Versions

26/03 2013

dev-master

9999999-dev https://github.com/digitalkaoz/container-service-checker

Symfony2 DI-Container Checker

  Sources   Download

MIT

The Requires

 

debug symfony2 dic