Skip to content

Getting Started

Andrzej Kostrzewa edited this page Nov 13, 2016 · 1 revision

Installation

You can install the component in 2 different ways:

  • Install it via Composer
$ composer require stackframework/dependency-injection

Container Instantiation

We instantiate a Container like so:

use Stack\DependencyInjection\ContainerBuilder;

$builder   = new ContainerBuilder();
$container = $builder->build();
Clone this wiki locally