Providers
Provider is a class that defines all features from the domain. This way you can easily activate or deactivate features and group them for easier maintenance.Many aspects of framework are designed as providers, for example Environment
and Application
.
You can group:
(sub-)providers
services
routes
listeners (for events)
middlewares and afterwares
console commands
jobs
assets (frontend - css & js)
translations
In addition to that, a provider can also register:
autoloaders and classmaps
reuse other apps (which are also providers)
view paths (for twig) and view objects (available in tempalte engines)
Providers are registered in the run app
step of the request lifecycle when the Config
is already initialized.
Routes
Autoloaders
Classmaps
Providers
Apps
Consoles
Assets
Paths
Middlewares
Afterwares
View objects
Listeners
Jobs
Last updated
Was this helpful?