coldbox create interceptor

Parameters:
Name Type Required Default Hint
name string true Name of the interceptor to create without the .cfc
points string false A comma-delimited list of interception points to generate
description string false I am a new interceptor A description for the interceptor hint
tests boolean false true Generate the unit test component
testsDirectory string false tests/specs/interceptors Your unit tests directory. Only used if tests is true
directory string false interceptors The base directory to create your interceptor in and creates the directory if it does not exist.
script boolean false true Generate content in script markup or tag markup
open boolean false false Open the interceptor once generated

Command Usage

Create a new interceptor in an existing ColdBox application. Make sure you are running this command in the root
of your app for it to find the correct folder. You can optionally create unit tests for your new interceptor at the same time.
By default, your new interceptor will be created in /interceptors but you can override that with the directory param.
Note, even though this command creates the interceptor CFC, you will still need to register it in the interceptors array
in your ColdBox.cfc config file.

coldbox create interceptor myInterceptor preProcess,postEvent