WildPHP / irc-bot

A simple and modular PHP IRC bot
MIT License
84 stars 24 forks source link

Optional dependencies #41

Closed NanoSector closed 9 years ago

NanoSector commented 9 years ago

We should probably allow modules to make some dependencies optional, so if they don't exist the module won't fail to load.

Consider this. Module X has some special functionality, but it requires module Y to function. This functionality however is only minimal to the module's primary functionality (e.g. different style of output?), and the module still works fine without this functionality. The module would have to depend on Y in order to get it to load before X initialises, but since it's not crucial X would be kicked off the stack if Y is not available, while X could still work fine.

NanoSector commented 9 years ago

We dropped dependencies altogether. Use composer for this or clearly state this on your module's page.