Closed MacDada closed 8 years ago
I don't think this is right solution. I think the filter functionality and the CORS functionality need to be extracted into different classes. The filter class would call the CORS class. That would allow you access to the functions you need without giving behavior to the filter class that doesn't involve the filter. This design decision has been bothering me for a while. I knew at some point something like this would come up.
I think the filter functionality and the CORS functionality need to be extracted into different classes.
I totally agree, but wasn't sure if this is a right time for larger refactorings ;)
It's always a good time for refactorings!
Closing this pull request because we are taking another approach. See #24
https://github.com/jdesrosiers/silex-cors-provider/issues/22