Contributte Service-autoloader
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
# Disclaimer
⚠️ | This project is no longer being maintained. Please use contributte/di (opens new window). |
---|
Composer | minetro/service-autoloader (opens new window) |
---|---|
Version | |
PHP | |
License |
# Usage
extensions:
autoload: Minetro\Autoloader\DI\ServiceAutoloadExtension
1
2
2
# By default
This configuration is enabled by default.
autoload:
dirs:
- %appDir%
annotations:
- @Service
interfaces:
- Minetro\Autoloader\AutoloadService
decorator:
inject: off
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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 (opens new window).
# Development
This package was maintain by these authors.
Consider to support (opens new window) contributte development team. Also thank you for being used this package.