Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: improve the plugins manager #11

Closed
yosymfony opened this issue Jun 24, 2014 · 0 comments
Closed

Proposal: improve the plugins manager #11

yosymfony opened this issue Jun 24, 2014 · 0 comments

Comments

@yosymfony
Copy link
Member

Prior to Spress 1.1.0, to create a plugins without Composer is not easy: you need to create a .php file, a folder and a composer.json for your plugin and then, you need to register the namespace of your plugin in composer.json of your site. With this proposal, all .php files in _plugins folder will be loaded automatically with exception of files located at _plugin\vendors. Advantages:

  • Write simple plugins without namespaces.
  • Plugin located at plugins root or subfolder.
  • Not need dump the composer autoloader for classloader.

"spress_class" key at "extra" section in composer.json:
This key become optional and only necessary for plugins with namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant