in ColdBox and do nothing in other frameworks. This could be perfectly fine. component { property name="grammar" inject="DefaultGrammar@qb"; function get( options ) { return grammar.runQuery( toSQL() ); } }
using ColdBox? To create a `QueryBuilder`, you will need to pass in your desired grammar to the constructor. (You can always change this later by calling the `setGrammar` method and passing in a new grammar.)
just have to document it in your README: <!-- README.md --> ## Not using ColdBox? Make sure to bring your own DIEngine. It needs to conform to the following interface: interface name="DIEngine" { function getInstance( string name, string dsl, struct initArguments ); }
more explicit. → Remember that going the old-fashioned constructor route means that everything needs to be injected. → On the flip side, remember that if you are expecting or needing DI, you need to use a DI engine.
next. This blog post made me rethink the implementation from being ColdBox only to something more inclusive. → FW/1 integration is part of the qb docs. → Basic ModuleConfig.cfc support is now in FW/1