psecio / invoke

Invoke: Route Authentication/Authorization Management
36 stars 3 forks source link

Translate the "matches" set to a chain container #4

Open enygma opened 9 years ago

enygma commented 9 years ago

Right now the matches are just held in an array in the Enforcer class and evaluated for pass/fail as they fall. It's only possible to get information on the last failure in the set. I'm curious if translating these matches into a "chain" object/container and storing each of the evaluation results would be useful.

This could potentially cause overhead, though, as all matches would be evaluated regardless of if one fails. I suppose that could be an option...