DatabaseFactory
final class DatabaseFactory (View source)
Builds a Database facade with a matching connection and registered driver implementation.
Methods
__construct(ConnectionFactory $connectionFactory, DatabaseDriverRegistry $registry, ContainerInterface $container)
Initializes this DatabaseFactory with the collaborators and state required by its database contract.
create(DatabaseConfig $config)
Builds the requested database value while preserving its framework contract.
createFromArray(array $config)
Details
__construct
__construct(ConnectionFactory $connectionFactory, DatabaseDriverRegistry $registry, ContainerInterface $container)
Initializes this DatabaseFactory with the collaborators and state required by its database contract.
create
Database
create(DatabaseConfig $config)
Builds the requested database value while preserving its framework contract.