File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- CakePHP Plugin Installer
2- ========================
1+ # CakePHP Plugin Installer
32
43A composer installer for installing CakePHP 3.0+ plugins.
54
65This installer ensures your application is aware of CakePHP plugins installed
76by composer in ` vendor/ ` .
87
9- Usage
10- -----
8+ ## Usage
119
1210Your CakePHP application should already depend on ` cakephp/plugin-installer ` , if
1311not in your CakePHP application run:
@@ -23,6 +21,21 @@ only need to specify the `type` in their composer config:
2321"type" : " cakephp-plugin"
2422```
2523
24+ ## Multiple Plugin Paths
25+
26+ If your application uses multiple plugin paths. In addition to configuring your
27+ application settings you will also need to update your ` composer.json ` to ensure
28+ the generated ` cakephp-plugins.php ` file is correct:
29+
30+ ```
31+ // Define the list of plugin-paths your application uses.
32+ "extra": {
33+ "plugin-paths": ["plugins", "extra_plugins"]
34+ }
35+ ```
36+
37+ ## Plugin Setup
38+
2639For the installer to work properly ensure that your plugin's composer config
2740file has a proper autoload section. Assuming your plugin's namespace is "MyPlugin"
2841the autoload section would be like:
You can’t perform that action at this time.
0 commit comments