xylemical/container

Provides framework for container compilation.

dev-master 2022-06-30 05:45 UTC

This package is auto-updated.

Last update: 2024-04-29 04:59:54 UTC


README

Provides a framework for containers and compilation.

Install

The recommended way to install this library is through composer.

composer require xylemical/container

Usage

use Xylemical\Container\ContainerBuilder;

$source = ...; // A source defined by \Xylemical\Container\Source\SourceInterface.
$builder = new ContainerBuilder($source, 'config/container.php');
$container = $builder->getContainer();

License

MIT, see LICENSE.