Registry / utility / nette-di

nette-di

JSON →
library3.2.6phppackagistunverified

Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

composer require nette/di
INSTALL
IMPORT
SIG · NETTE-DI
N
nette-di
utilityphpv3.2.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Container
✓ use Nette\DI\Container;

Basic usage of Nette DI container to retrieve a service.

use Nette\DI\Container; $container = new Container(); $service = $container->getByType(SomeClass::class);
Debug
Known issues
gotchaCompiled container requires cache directory writable
fix
Ensure the temp directory is writable for container compilation.
affects: >=3.0
Upgrade
Version history
3.2.6latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
nette-di — pip install nette-di · libregistry