Свойство | Type | Description | |
---|---|---|---|
$composerFilename | |||
$eventDispatcher | |||
$excludeDirs | |||
$path | |||
$resolver |
Méthode | Description | |
---|---|---|
__construct ( string $path, |
Constructor. | |
build ( ) : |
Builds the PluginManager with the plugins of a site. | |
setComposerFilename ( string $name ) | Sets the composer filename. "composer.json" by default. |
Méthode | Description | |
---|---|---|
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. |
public __construct ( string $path, |
||
$path | string | Path to plugin folder |
$eventDispatcher | ||
$excludeDirs | array | List of directories excluded of the scan for discovering class. Tests directories are a good example |
public build ( ) : |
||
Résultat |
protected getClassname ( Symfony\Component\Finder\SplFileInfo $file ) : string | ||
$file | Symfony\Component\Finder\SplFileInfo | |
Résultat | string |
protected getPluginMetas ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin ) : array | ||
$plugin | Yosymfony\Spress\Core\Plugin\PluginInterface | The plugin |
Résultat | array |
protected getResolver ( ) : Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver | ||
Résultat | Yosymfony\Spress\Core\Support\AttributesResolver\AttributesResolver |
protected isValidClassName ( string $name ) : boolean | ||
$name | string | |
Résultat | boolean |
protected readComposerFile ( Symfony\Component\Finder\SplFileInfo $file ) : array | ||
$file | Symfony\Component\Finder\SplFileInfo | |
Résultat | array | The parsed json filename |
public setComposerFilename ( string $name ) | ||
$name | string | The filename |