snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Expose an IO function that collects all snaplet configs and returns them as a single Config object #71

Closed ozataman closed 11 years ago

ozataman commented 11 years ago

Almost every "serious" application ends up making executables that don't run in Handler or Snaplet, but need access to the application's various config parameters. (Ex: Cron job that archives old transactions in a DB table through some complex logic, or a cron job that hits some 3rd party API and dumps results into our DB every hour).

We should export a simple function that can be called to return the combined config in a simple IO context.

mightybyte commented 11 years ago

Fixed in cb79303a999675ffb3e82a4810206278e4954273