From 33b8cf5d3262550be7d825105f9e02024d7f4a4d Mon Sep 17 00:00:00 2001 From: Siarhei Bautrukevich Date: Fri, 10 May 2024 12:57:38 +0800 Subject: [PATCH] chore: update readme for container package --- packages/container/README.md | 49 +++--------------------------------- 1 file changed, 3 insertions(+), 46 deletions(-) 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