File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1212interface EnricherPluginInterface extends ConfigurationPluginInterface
1313{
1414 /**
15- * Enriches the configuration of a specific other
15+ * Enriches the configuration of another diagnostics plugin.
16+ *
17+ * The enricher might be used for several plugins and have to handle the plugin depending on its name and version.
18+ *
1619 * @param string $pluginName The name of the plugin which is enriched.
1720 * @param array $pluginConfig The current plugin configuration.
1821 * @param PluginConfigurationInterface $config The configuration of the enricher plugin itself.
22+ *
1923 * @param EnvironmentInterface $environment The environment for the
2024 *
2125 * @return array
2226 */
2327 public function enrich (
2428 string $ pluginName ,
29+ string $ pluginVersion ,
2530 array $ pluginConfig ,
2631 PluginConfigurationInterface $ config ,
2732 EnvironmentInterface $ environment
Original file line number Diff line number Diff line change 44
55namespace Phpcq \PluginApi \Version10 ;
66
7+ use Phpcq \PluginApi \Version10 \Exception \RuntimeException ;
78use Phpcq \PluginApi \Version10 \Task \TaskFactoryInterface ;
89
910interface EnvironmentInterface
@@ -32,6 +33,11 @@ public function getBuildTempDir(): string;
3233 /**
3334 * Get the installed directory of the current plugin.
3435 *
36+ * The installed directory is also the home of the plugin specific generated composer.json. Installed composer
37+ * packages will be available in the vendor subdirectory.
38+ *
39+ * The plugin might
40+ *
3541 * @return string
3642 */
3743 public function getInstalledDir (): string ;
You can’t perform that action at this time.
0 commit comments