fusible/cli-provider

Canned Aura\Di config for Aura\Cli

0.3.0 2016-10-07 17:19 UTC

This package is auto-updated.

Last update: 2024-10-29 04:09:26 UTC


README

Canned Aura\Cli configuration for Aura\Di (3.x)

Latest version Build Status Coverage Status Quality Score

Installation

composer require fusible/cli-provider

Usage

Aura\Di (3.x)

See: Aura\Di > Container Builder and Config Classes .

use Aura\Di\ContainerBuilder;
use Fusible\CliProvider\Config as CliConfig;

$builder = new ContainerBuilder();
$di = $builder->newConfiguredInstance([CliConfig::class]);

$context = $di->get(CliConfig::CONTEXT);
$stdio   = $di->get(CliConfig::STDIO);