\Charcoal\App\ServiceProviderDatabaseServiceProvider

Database Service Provider. Configures and provides a PDO service to a container.

Services

  • database The \PDO instance.
  • databases Container of all availables \PDO databases.

Helpers

  • database/config A DatabaseConfig object containing the DB settings.
  • databases/config A container ofDatabaseConfig`

Summary

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

Methods

register()

register(\Pimple\Container  $container) : void

Registers services on the given container.

This method should only be used to configure services and parameters. It should not get services.

Parameters

\Pimple\Container $container

A container instance.