Skip to content

Commit d2d4ef7

Browse files
committed
Add the authrorisation text to the README.
1 parent d2ae4de commit d2d4ef7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ This plugin will expose the \PHPStan namespace so that you can create your custo
2424
See the following pages for more details:
2525
https://phpstan.org/developing-extensions/rules
2626
https://phpstan.org/developing-extensions/collectors
27+
28+
Authorise the plugin, please answer y to the following prompt:
29+
xactsystems/phpstan-dev contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
30+
Do you trust "xactsystems/phpstan-dev" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
31+
32+
## Why a plugin?
33+
Although there are events within the Composer ecosystem, none of these fire for the packages being managed, they fire only for the top level package that is requiring them. Composer plugins on the other hand fire within the package being required.
34+
35+
In this situation we simply use the Activate method to check and see if the PHPStan source code has been extracted. If it's not we do so.

0 commit comments

Comments
 (0)