minetro / service-autoloader
Service autoloader for Nette Framework
Fund package maintenance!
f3l1x
contributte.org/partners.html
Installs: 2 439
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >= 5.6
- nette/reflection: ~2.3.0|~2.4.0
- nette/robot-loader: ~2.3.0|~2.4.0
Requires (Dev)
- nette/di: ~2.4.1
- nette/tester: ~2.0.2
This package is not auto-updated.
Last update: 2022-02-01 12:59:30 UTC
README
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.
Consider to support contributte development team. Also thank you for being used this package.