Class LeanMapperExtension
- Nette\DI\CompilerExtension
- JP\LeanMapperExtension\LeanMapperExtension
public
|
|
protected
Nette\DI\ServiceDefinition
|
#
configConnection( Nette\DI\ContainerBuilder $builder, array $config )
Adds connection service into container |
protected
Nette\DI\ServiceDefinition
|
#
configMapper( Nette\DI\ContainerBuilder $builder, array $config )
Adds mapper service into container |
protected
|
#
processUserEntities( Nette\DI\ServiceDefinition $mapper, array $config )
Processes user entities definitions + registers repositories in container |
protected
|
|
protected
|
|
protected
|
#
registerInMapper( Nette\DI\ServiceDefinition $mapper, array $mapping = NULL )
Registers new entity in mapper |
public static
|
public
array
|
$defaults
|
#
array(
// services
'mapper' => 'JP\LeanMapperExtension\Mapper',
'entityFactory' => 'LeanMapper\DefaultEntityFactory',
'connection' => 'LeanMapper\Connection',
// mapper
'defaultEntityNamespace' => NULL,
// connection
'host' => 'localhost',
'driver' => 'mysqli',
'username' => NULL,
'password' => NULL,
'database' => NULL,
'lazy' => TRUE,
// entities
'entities' => NULL,
)
|