PHP Class Atrauzzi\LaravelDoctrine\ServiceProvider

Inheritance: extends Illuminate\Support\ServiceProvider
Datei anzeigen Open project: atrauzzi/laravel-doctrine

Public Methods

Method Description
boot ( ) : void Bootstrap the application events.
provides ( ) : array Get the services provided by the provider.
register ( ) : void Register the service provider.

Protected Methods

Method Description
createCache ( ) : CacheProvider Initializes cache. Defaults to Array cache.
createDoctrineConfig ( $cache ) : Doctrine\ORM\Configuration
createEventManager ( ) : Doctrine\Common\EventManager
createMetadataDriver ( Doctrine\ORM\Configuration $config, array $driverConfig ) : Doctrine\Common\Persistence\Mapping\Driver\MappingDriver Takes care of building any drivers we wish to support.
extendsAuth ( )
getDoctrineConnection ( ) : mixed
registerCustomTypes ( )

Private Methods

Method Description
mapToDoctrineConfigs ( $config ) : mixed

Method Details

boot() public method

Bootstrap the application events.
public boot ( ) : void
return void

createCache() protected method

Initializes cache. Defaults to Array cache.
protected createCache ( ) : CacheProvider
return Doctrine\Common\Cache\CacheProvider

createDoctrineConfig() protected method

protected createDoctrineConfig ( $cache ) : Doctrine\ORM\Configuration
$cache
return Doctrine\ORM\Configuration

createEventManager() protected method

protected createEventManager ( ) : Doctrine\Common\EventManager
return Doctrine\Common\EventManager

createMetadataDriver() protected method

Note: Chain is handled above, it's special.
protected createMetadataDriver ( Doctrine\ORM\Configuration $config, array $driverConfig ) : Doctrine\Common\Persistence\Mapping\Driver\MappingDriver
$config Doctrine\ORM\Configuration
$driverConfig array
return Doctrine\Common\Persistence\Mapping\Driver\MappingDriver

extendsAuth() protected method

protected extendsAuth ( )

getDoctrineConnection() protected method

protected getDoctrineConnection ( ) : mixed
return mixed

provides() public method

Get the services provided by the provider.
public provides ( ) : array
return array

register() public method

Register the service provider.
public register ( ) : void
return void

registerCustomTypes() protected method

protected registerCustomTypes ( )