Although I think it would be better to reference the function that inspects this array in a variable so that it can be overridden easily if someone has particular requirements that might be more efficiently described without this array format. i.e. move to a container/service provider model for the thing that determines whether the (rest) request is allowed?
(Just starting to look at this project for first time, please excuse if I've misunderstood anything)
Would this be acceptable though?
Although I think it would be better to reference the function that inspects this array in a variable so that it can be overridden easily if someone has particular requirements that might be more efficiently described without this array format. i.e. move to a container/service provider model for the thing that determines whether the (rest) request is allowed?