zfcampus/zf-apigility-admin — pull request #9 by EvanDotPro (2013-10-17 05:59:55+00:00)
Title: [WIP] Improved Apigilifying

There current regex is very basic and does not cover a lot of common class declaration types. Also, it will not properly report that it was unable to apigilify a module if the regex didn't match.

Hoping to fix that with this PR. It's not done yet but I thought I'd push it to show that I'm working on it.

Ultimately, this should probably use tokens to do this "correctly", but we should be able to make it "good enough" with regex.

Note: I've also structured the regex groups a little oddly because my goal here is to make the apigilification as unobtrusive as possible, such that it doesn't touch/change existing formatting or whitespace unnecessarily.