Luracast/Restler — pull request #61 by JoelRSimpson (2012-07-04 17:05:42+00:00)
Title: A fix to a change and init() refactor

A change was made at some point, probably to make things more efficient, but it broke a case for APIs that are not at the root, e.g. api.mydomain.com/v1/customer/resource/123 with a class map equivalent to Appnamespace/RestApi/v1/Customer.php I've reverted the comparison and added a note.

I refactored the initialization portion of handle() to an init() function so that it is possible to respond to error conditions using Restler prior to the handle() event, for example, when errors occur in pre-routing.

I also used netbeans to auto-format the code to something that should be PSR compliant.