PluginDriver
class PluginDriver extends AbstractDriver (View source)
Installer driver to process plugins (out-of-framework event listeners)
This class will parse every "plugins" extra field. It expects the field syntax to be like the following:
"extra": { "plugins": [ { "class": "\My\Plugin", "event": "custom.event", "priority": 0, // <= plugin priority if other plugins share same event "onetime": true // <= this will make plugin fire only once }, { "class": "\My\OtherPlugin", "event": "custom.anotherevent" } ] }
Properties
protected Composer | $composer | from AbstractDriver | |
protected IOInterface | $io | from AbstractDriver | |
protected Configuration | $configuration | from AbstractDriver | |
protected InstallerParameters | $parameters | from AbstractDriver | |
protected InstallerPersistenceInterface | $persistence | from AbstractDriver | |
protected array | $base_plugin | Basic plugin configuration |
Methods
Driver constructor, just to ensure all pieces are in the right place
Install a package, processing all extra fields that it contains.
Update a package checking differences from it's initial and target extra fields.
Uninstall package, removing all related extra fields.
No description
No description
Details
in AbstractDriver at line 56
__construct(Composer $composer, IOInterface $io, Configuration $configuration, InstallerParameters $parameters, InstallerPersistenceInterface $persistence)
Driver constructor, just to ensure all pieces are in the right place
in AbstractDriver at line 75
Composer
getComposer()
in AbstractDriver at line 84
IOInterface
getIo()
in AbstractDriver at line 93
Configuration
getConfiguration()
in AbstractDriver at line 102
InstallerParameters
getParameters()
in AbstractDriver at line 111
InstallerPersistenceInterface
getPersistence()
at line 58
void
install(string $package_name, string $package_path, array $package_extra)
Install a package, processing all extra fields that it contains.
at line 76
void
update(string $package_name, string $package_path, array $initial_extra, array $target_extra)
Update a package checking differences from it's initial and target extra fields.
at line 95
void
uninstall(string $package_name, string $package_path, array $package_extra)
Uninstall package, removing all related extra fields.