CFC's with same name don't get aliases picked up with mapDirectory()

Description

To test this, create a module in a Coldbox app with these CFCs:

  • /modules_app/myModule/models/foo/test.cfc (alias as fooTest@myModule)

  • /modules_app/myModule/models/bar/test.cfc (alias as barTest@myModule)

  • /modules_app/myModule/models/baz/test.cfc (alias as bazTest@myModule)

WireBox will only pick up the first mapping because the mappings keep overwriting each other before they are processed. Change how mapDirectory() works in the binder to force the mappings and process them immediately.

Activity

Show:
Brad Wood
July 11, 2017, 7:18 PM
Fixed

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure