Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 679 Bytes

readme.md

File metadata and controls

29 lines (20 loc) · 679 Bytes

Example of using Nette DI Container

Dependency Injection (DI) enables classes to be relieved from the task of creating objects they depend on. These dependent objects are termed services. Comprehensive documentation is available at the official Nette website.

Installation

To set up the example:

git clone https://github.com/nette-examples/di-example-doc
cd di-example-doc
composer install

Run the Demo

Execute the demo using:

php example.php

PHP Requirements

This demo is compatible with PHP version 8.1 or newer.