PHP Class Nextras\Orm\Bridges\NetteDI\OrmExtension

Inheritance: extends Nette\DI\CompilerExtension
显示文件 Open project: nextras/orm Class Usage Examples

Public Methods

Method Description
loadConfiguration ( )

Protected Methods

Method Description
createMapperService ( $repositoryName, $repositoryClass, ContainerBuilder $builder )
createRepositoryService ( $repositoryName, $repositoryClass, ContainerBuilder $builder, $mapperName )
getRepositoryList ( $modelClass )
setupCache ( )
setupDependencyProvider ( )
setupMetadataParserFactory ( $class )
setupMetadataStorage ( array $repositoryConfig )
setupModel ( $modelClass, $repositoriesConfig )
setupRepositoriesAndMappers ( $repositories )
setupRepositoryLoader ( array $repositories )

Method Details

createMapperService() protected method

protected createMapperService ( $repositoryName, $repositoryClass, ContainerBuilder $builder )
$builder Nette\DI\ContainerBuilder

createRepositoryService() protected method

protected createRepositoryService ( $repositoryName, $repositoryClass, ContainerBuilder $builder, $mapperName )
$builder Nette\DI\ContainerBuilder

getRepositoryList() protected method

protected getRepositoryList ( $modelClass )

loadConfiguration() public method

public loadConfiguration ( )

setupCache() protected method

protected setupCache ( )

setupDependencyProvider() protected method

protected setupDependencyProvider ( )

setupMetadataParserFactory() protected method

protected setupMetadataParserFactory ( $class )

setupMetadataStorage() protected method

protected setupMetadataStorage ( array $repositoryConfig )
$repositoryConfig array

setupModel() protected method

protected setupModel ( $modelClass, $repositoriesConfig )

setupRepositoriesAndMappers() protected method

protected setupRepositoriesAndMappers ( $repositories )

setupRepositoryLoader() protected method

protected setupRepositoryLoader ( array $repositories )
$repositories array