PHP 클래스 Yosymfony\Spress\Core\Plugin\PluginManagerBuilder

저자: Victor Puertas ([email protected])
파일 보기 프로젝트 열기: spress/spress 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$composerFilename
$eventDispatcher
$excludeDirs
$path
$resolver

공개 메소드들

메소드 설명
__construct ( string $path, EventDispatcher $eventDispatcher, array $excludeDirs = [] ) Constructor.
build ( ) : PluginManager Builds the PluginManager with the plugins of a site.
setComposerFilename ( string $name ) Sets the composer filename. "composer.json" by default.

보호된 메소드들

메소드 설명
buildFinder ( )
getClassname ( Symfony\Component\Finder\SplFileInfo $file ) : string Gets the class name.
getPluginMetas ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin ) : array Gets metas of a plugin.
getResolver ( ) : Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver Gets the attribute resolver.
isValidClassName ( string $name ) : boolean Checks if the class name is valid.
readComposerFile ( Symfony\Component\Finder\SplFileInfo $file ) : array Reads a "composer.json" file.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $path, EventDispatcher $eventDispatcher, array $excludeDirs = [] )
$path string Path to plugin folder
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcher
$excludeDirs array List of directories excluded of the scan for discovering class. Tests directories are a good example

build() 공개 메소드

Each plugin is added to PluginManager using "name" meta or its classname if that meta do not exists.
public build ( ) : PluginManager
리턴 PluginManager

buildFinder() 보호된 메소드

protected buildFinder ( )

getClassname() 보호된 메소드

Gets the class name.
protected getClassname ( Symfony\Component\Finder\SplFileInfo $file ) : string
$file Symfony\Component\Finder\SplFileInfo
리턴 string

getPluginMetas() 보호된 메소드

Gets metas of a plugin.
protected getPluginMetas ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin ) : array
$plugin Yosymfony\Spress\Core\Plugin\PluginInterface The plugin
리턴 array

getResolver() 보호된 메소드

Gets the attribute resolver.
protected getResolver ( ) : Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver
리턴 Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver

isValidClassName() 보호된 메소드

Checks if the class name is valid.
protected isValidClassName ( string $name ) : boolean
$name string
리턴 boolean

readComposerFile() 보호된 메소드

Reads a "composer.json" file.
protected readComposerFile ( Symfony\Component\Finder\SplFileInfo $file ) : array
$file Symfony\Component\Finder\SplFileInfo
리턴 array The parsed json filename

setComposerFilename() 공개 메소드

Sets the composer filename. "composer.json" by default.
public setComposerFilename ( string $name )
$name string The filename

프로퍼티 상세

$composerFilename 보호되어 있는 프로퍼티

protected $composerFilename

$eventDispatcher 보호되어 있는 프로퍼티

protected $eventDispatcher

$excludeDirs 보호되어 있는 프로퍼티

protected $excludeDirs

$path 보호되어 있는 프로퍼티

protected $path

$resolver 보호되어 있는 프로퍼티

protected $resolver