简体   繁体   中英

How can I contribute to a third-party Symfony bundle?

I'm trying to add a missing feature to a bundle. Here is what I've done so far:

  • Spoke to the project owner and got their approval
  • Created a fork and cloned it locally into a directory outside of my project
  • Made a feature branch
  • Ran composer install

Now, the question is, how can I include this into my own Symfony project so that it would be autoloaded? I want to test my changes inside my own project before I send a pull request.

See How to require a fork with composer , to be specific, require a VCS repository as described in Composer docs

Or a bit faster way for improving developing process (which is independent on Github), try using local repositories .

You can archive in two manner:

  1. You can hack the vendor folder replacing the folder of the bundle with a symlink of the third-party bundle
  2. [RECOMENDED] Put in the composer.json file of your project the reference of your personal github project instead of the official version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM