FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Orm Reload Interceptor

v1.0.2 Public

ORM Reload Interceptor

Installation

box install orm-reload-interceptor

ORMReload with a URL flag

Just like you can add fwreinit=my_passsword to the URL to reload your ColdBox application, this module adds an interceptor that lets you specify ormreload=my_orm_reload_password.

The interceptor will work out of the box with no password set.

If you want to set the reload password, override the interceptor in your config/Coldbox.cfc settings:

interceptors = [
	{
		class="modules.orm-reload-interceptor.URLReload",
		properties = {
			reloadPassword = "my-password-here"
		}
	}
];

ORMReload on FWReinit

Installing this module will also automatically call ormReload() on a fwreinit (?fwreinit=1). You can override this setting by overriding the interceptor in your config/Coldbox.cfc settings, as well:

interceptors = [
	{
		class="modules.orm-reload-interceptor.ReloadWithFWReinit",
		properties = {
			autoReload = false
		}
	}
];

Dependencies (0)


Dev Dependencies (2)


 

$ box install orm-reload-interceptor

No collaborators yet.
     
  • Jun 14 2016 12:40 PM
  • Jun 14 2016 12:41 PM
  • 1,324
  • 29
  • 751