register()
register(\Pimple\Container $container) : void
Parameters
\Pimple\Container | $container | A Pimple DI container instance. |
Model Service Providers.
The following keys are expected to be set on the container (from external sources / providers):
cache
A PSR-6 compliant cache pool.config
A charcoal app config (\Charcoal\Config\ConfigInterface)qdatabase
A PDO database instancelogger
A PSR-3 compliant logger.view
A \Charcoal\View\ViewInterface instanceThe following services are registered on the container:
model/factory
A \Charcoal\Factory\FactoryInterface factory to create models.model/collection/loader
A collection loader (should not be used).