troelskn / konstrukt

A HTTP-friendly framework of controllers for PHP5.
http://konstrukt.dk/
Other
99 stars 14 forks source link

Namespace support #17

Closed TobiaszCudnik closed 12 years ago

TobiaszCudnik commented 13 years ago

Please support PHP 5.3 namespaces, as eg HTTP response classes are not separated (like k_SeeOther, k_MovedPermanently).

Thanks.

lsolesen commented 13 years ago

Can you give me an example, because I see class: k_HttpResponse() in https://github.com/troelskn/konstrukt/blob/master/lib/konstrukt/response.inc.php#L206

troelskn commented 13 years ago

@lsolesen I'm guessing tobias means to use actual namespaces. Eg. k\SeeOther rather than k_SeeOther. I can see the idea, but it's not really a high priority for me right now. It also will break a lot of code doing so. If you can create a patch which somehow preserves BC (Should be possible by creating classes in the global scope which extends from the namespaced variants and put all these stubs in a separate file that can optionally be included).

lsolesen commented 12 years ago

Closing. The library will keep the prefixes and not get namespace support.