minetro/service-autoloader

This package is abandoned and no longer maintained. The author suggests using the contributte/di package instead.

Service autoloader for Nette Framework

dev-master 2021-06-25 18:02 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:59:30 UTC


README

68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77 68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ This project is no longer being maintained. Please use contributte/di.
Composer minetro/service-autoloader
Version
PHP
License

Usage

extensions:
	autoload: Minetro\Autoloader\DI\ServiceAutoloadExtension

By default

This configuration is enabled by default.

autoload:
	dirs:
		- %appDir%

	annotations:
		- @Service

	interfaces:
		- Minetro\Autoloader\AutoloadService

	decorator:
		inject: off

Custom

You can override all configuration settings you want to.

autoload:
	dirs:
		- %appDir%
		- %libsDir%
		- %fooDir%

	annotations:
		- @Service
		- @MyCustomService

	interfaces:
		- Minetro\Autoloader\AutoloadService
		- App\Model\MyAutoloadServiceInterface

	decorator:
		inject: on / off

Performance

Service loading is triggered only once at dependency injection container compile-time. You should be pretty fast, almost as official registering presenter as services.

Development

This package was maintain by these authors.

538058?v=3&s=80

Consider to support contributte development team. Also thank you for being used this package.