Skip to content

Commit

Permalink
Merge pull request #139 from Jagepard/wip
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
Jagepard committed Mar 25, 2024
2 parents 973d7db + 8c0441b commit fafe35d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use Rudra\Container\Facades\Rudra;
---
Bind an interface to an implementation or pre-arranged factory <br>
Связать интерфейс с реализацией или заранее подготовленной фабрикой:

---
```php
Rudra::run()->binding([
Expand All @@ -50,6 +51,7 @@ Rudra::binding([
---
Installs services into a waiting container to be initialized when called:<br>
Устанавливает сервисы в контейнер ожидающих, для инициализации при вызове:

---
```php
Rudra::run()->waiting([
Expand All @@ -65,6 +67,7 @@ Rudra::waiting([
---
Add a bind to previously established ones:<br>
Добавляем привязку к ранее установленным:

---
```php
Rudra::run()->binding()->set([SomeInterface::class => SomeClass::class])
Expand All @@ -76,6 +79,7 @@ Rudra::binding()->set([SomeClass::class, ['param-1', 'param-2']);
---
Add the service to the previously installed ones:<br>
Добавляем сервис к ранее установленным:

---
```php
Rudra::run()->waiting()->set([
Expand All @@ -91,6 +95,7 @@ Rudra::waiting()->set([
---
Call the created service:<br>
Вызываем созданный сервис:

---
```php
Rudra::run()->get('service-name')
Expand All @@ -102,6 +107,7 @@ Rudra::get('service-name')
---
If the service does not have parameters, or the parameters are in the binding, then the service will be created automatically when calling<br>
Если сервис не имеет параметров, либо параметры имеются в привязке, то сервис будет создан автоматически при вызове

---
```php
Rudra::run()->get(Service::class)
Expand Down

0 comments on commit fafe35d

Please sign in to comment.