Skip to content

Commit 0833a0b

Browse files
committed
readme: added jumbo
1 parent a4c42ff commit 0833a0b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

readme.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Nette Dependency Injection (DI)
2-
===============================
1+
[![Nette Dependency Injection](https://github.com/nette/di/assets/194960/d368a458-bac1-48b1-9b4b-7929f4bb2f98)](https://doc.nette.org/dependency-injection)
32

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

9+
 <!---->
1010

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

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

20+
 <!---->
2021

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

2829
Thank you!
2930

31+
 <!---->
3032

3133
Installation
3234
------------
@@ -39,6 +41,7 @@ composer require nette/di
3941

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

44+
 <!---->
4245

4346
Usage
4447
-----
@@ -177,6 +180,8 @@ $manager->distribute(...);
177180

178181
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.
179182

183+
 <!---->
184+
180185
Nette DI
181186
----------
182187

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

226+
 <!---->
221227

222228
Services
223229
--------
@@ -291,6 +297,7 @@ class FooClass
291297
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.
292298

293299

300+
 <!---->
294301

295302
Factories
296303
---------

0 commit comments

Comments
 (0)