arhframe/iocart

Ioc which use the spring style.

Maintainers

Package info

github.com/arhframe/iocart

Homepage

pkg:composer/arhframe/iocart

Statistics

Installs: 134

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.5 2014-08-29 15:30 UTC

This package is auto-updated.

Last update: 2026-03-12 23:43:39 UTC


README

IocArt is an another IOC (inversion of Control) and he is close too Spring Ioc style. The main point is that IocArt have his context file in yml. Bean is "class" wich you can inject inside their properties:

  • Another bean
  • Property file
  • A yaml file read by yamlarh
  • A stream

You can also import other yaml context in a yaml context

Installation

Through Composer, obviously:

{
    "require": {
        "arhframe/iocart": "1.*"
    }
}

Usage

use Arhframe\IocArt\BeanLoader;

$beanLoader = BeanLoader::getInstance();
$beanLoader->loadContext('your/yaml/file/for/context');

Examples