ColdBox HMVC Documentation
Master Class
Video Training
Community
Support
Search…
6.x
Introduction
Intro
Release History
About This Book
Author
For Newbies
60 Minute Quick Start
Getting Started
Getting Started Guide
Installation
Conventions
Configuration
The Basics
Request Context
Routing
Event Handlers
Layouts & Views
Models
Interceptors
How do they work?
Interceptor Declaration
Interceptor Registration
Dynamic Registration
Core Interception Points
Restricting Execution
Interceptor Output Buffer
Custom Events
Unregistering Interceptors
Reporting Methods
Interceptor Asynchronicity
HMVC
Modules
Testing
Testing Quick Start
Testing ColdBox Applications
Digging Deeper
Async Programming
ColdBox Proxy
Controller Decorator
Flash RAM
HTML Helper
REST Handler
Request Context Decorator
Recipes
Scheduled Tasks
Architecture Concepts
What is MVC
What is ColdBox
How ColdBox Works
Testing Concepts
External links
Source code
Issue tracker
LogBox
CacheBox
WireBox
Powered By
GitBook
Unregistering Interceptors
Each interceptor can unregister itself from any event by using the
unregister( state )
method. This method is found in all Interceptors or can be accessed via the interceptor service as well.
1
// Inside an interceptor
2
unregister
(
'preProcess'
);
3
​
4
// From the interceptor service
5
controller
.
getInterceptorService
()
6
.
unregister
(
interceptorName
=
"MyInterceptor"
,
state
=
"preProcess"
);
Copied!
Previous
Announcing Interceptions
Next
Reporting Methods
Last modified
4yr ago
Copy link
Edit on GitHub