PHP 트레잇 Bolt\Extension\ConfigTrait

저자: Carson Full ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

공개 메소드들

메소드 설명
getName ( ) : string
getVendor ( ) : string

보호된 메소드들

메소드 설명
extendConfigService ( ) Call this in register method.
getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
getConfig ( ) : array Returns the config for the extension.
getContainer ( ) : Pimple
getDefaultConfig ( ) : array Override this to provide a default configuration, which will be used in the absence of a config file.
registerFields ( ) : Bolt\Storage\Field\FieldInterface[] Register a list of Bolt fields.

비공개 메소드들

메소드 설명
addConfig ( Bolt\Filesystem\Handler\YamlFile $file ) Merge in a yaml file to the config.
copyDistFile ( Bolt\Filesystem\Handler\YamlFile $file ) Copy config.yml.dist to config/extensions.

메소드 상세

extendConfigService() 보호된 메소드

Call this in register method.
protected extendConfigService ( )

getBaseDirectory() 추상적인 보호된 메소드

abstract protected getBaseDirectory ( ) : Bolt\Filesystem\Handler\DirectoryInterface
리턴 Bolt\Filesystem\Handler\DirectoryInterface

getConfig() 보호된 메소드

Returns the config for the extension.
protected getConfig ( ) : array
리턴 array

getContainer() 추상적인 보호된 메소드

abstract protected getContainer ( ) : Pimple
리턴 Pimple

getDefaultConfig() 보호된 메소드

Override this to provide a default configuration, which will be used in the absence of a config file.
protected getDefaultConfig ( ) : array
리턴 array

getName() 추상적인 공개 메소드

abstract public getName ( ) : string
리턴 string

getVendor() 추상적인 공개 메소드

abstract public getVendor ( ) : string
리턴 string

registerFields() 보호된 메소드

Example:
 return [
     new ColourPickField(),
 ];
protected registerFields ( ) : Bolt\Storage\Field\FieldInterface[]
리턴 Bolt\Storage\Field\FieldInterface[]