资 源 简 介
sfIocPlugin - IoC container for Symfony framework
Description
sfIocPlugin implements IoC container in PHP and provide easy integration with Symfony Framework.
Plugin is inspired by Spring framework IoC container (http://www.springframework.org/), but IS NOT AN ONE-TO-ONE COPY.
IoC container is useful for business logic layer implementations and adds more flexibility to your applications.
Features
This plugin is a very basic implementation of IoC, but it is enough for solving typical architecture problems.
annotations support (easy bean configuration by annotations for classes and methods - no need for configuring all parameters in config files)
support for dependency injection (currently only for construct())
implements singleton pattern (there is no need for using boring getInstance() methods)
simple usage
configurable with YAML files
Requirements