Skip to content

Commit

Permalink
readme: added jumbo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 16, 2024
1 parent 7a40f39 commit f9ca71d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Nette Dependency Injection (DI)
===============================
[![Nette Dependency Injection](https://github.com/nette/di/assets/194960/d368a458-bac1-48b1-9b4b-7929f4bb2f98)](https://doc.nette.org/dependency-injection)

[![Downloads this Month](https://img.shields.io/packagist/dm/nette/di.svg)](https://packagist.org/packages/nette/di)
[![Tests](https://github.com/nette/di/workflows/Tests/badge.svg?branch=master)](https://github.com/nette/di/actions)
[![Coverage Status](https://coveralls.io/repos/github/nette/di/badge.svg?branch=master)](https://coveralls.io/github/nette/di?branch=master)
[![Latest Stable Version](https://poser.pugx.org/nette/di/v/stable)](https://github.com/nette/di/releases)
[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/nette/di/blob/master/license.md)

 <!---->

Introduction
------------
Expand All @@ -17,6 +17,7 @@ Nette DI is one of the most interesting part of framework. It is compiled DI con

Documentation can be found on the [website](https://doc.nette.org/dependency-injection).

 <!---->

[Support Me](https://github.com/sponsors/dg)
--------------------------------------------
Expand All @@ -27,6 +28,7 @@ Do you like Nette DI? Are you looking forward to the new features?

Thank you!

 <!---->

Installation
------------
Expand All @@ -39,6 +41,7 @@ composer require nette/di

It requires PHP version 8.1 and supports PHP up to 8.3.

 <!---->

Usage
-----
Expand Down Expand Up @@ -177,6 +180,8 @@ $manager->distribute(...);

Significant to Dependency Injection is that no class depends on the container. Thus it can be easily replaced with another one. For example with the container generated by Nette DI.

 <!---->

Nette DI
----------

Expand Down Expand Up @@ -218,6 +223,7 @@ During development it is useful to activate auto-refresh mode which automaticall
$loader = new Nette\DI\ContainerLoader(__DIR__ . '/temp', autoRebuild: true);
```

 <!---->

Services
--------
Expand Down Expand Up @@ -291,6 +297,7 @@ class FooClass
However, this method is not ideal, because the variable must be declared as public and there is no way how you can ensure that the passed object will be of the given type. We also lose the ability to handle the assigned dependency in our code and we violate the principles of encapsulation.


 <!---->

Factories
---------
Expand Down

0 comments on commit f9ca71d

Please sign in to comment.