diff --git a/packages/container/README.md b/packages/container/README.md index f7d3479..9a61ba5 100644 --- a/packages/container/README.md +++ b/packages/container/README.md @@ -1,16 +1,12 @@

- +

A50 Container


-This package provides a factory for [PSR-11](http://www.php-fig.org/psr/psr-11/) compatible -[dependency injection](http://en.wikipedia.org/wiki/Dependency_injection) container that is able to instantiate -and configure classes resolving dependencies and `ServiceProvider` interface. - -Uses [PHP-DI](https://php-di.org/) as a core. +This package provides a Service Provider interface. [![Latest Version on Packagist](https://img.shields.io/packagist/v/a50/container.svg?style=flat-square)](https://packagist.org/packages/a50/container) [![Tests](https://github.com/a50/container/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/a50/container/actions/workflows/run-tests.yml) @@ -26,46 +22,7 @@ composer require a50/container ## Usage -To create a container you need to pass array of `ServiceProvider` objects interface: - -```php - static fn() => new stdClass(), - ]; - } - - /** - * @inheritDoc - */ - public static function getExtensions(): array - { - return [ - stdClass::class => static function ($stdClass, ContainerInterface $container): stdClass { - $stdClass->property = 'value'; - - return $stdClass; - } - ]; - } - } -]); - -``` +TBD ## Testing