\Charcoal\Model\ServiceProviderModelServiceProvider

Model Service Providers.

Container dependencies

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)q
  • database A PDO database instance
  • logger A PSR-3 compliant logger.
  • view A \Charcoal\View\ViewInterface instance

Services

The 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).

Summary

Methods
Properties
Constants
register()
No public properties found
No constants found
registerModelDependencies()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

A Pimple DI container instance.

registerModelDependencies()

registerModelDependencies(\Pimple\Container  $container) : void

Parameters

\Pimple\Container $container

A Pimple DI container instance.