Tips & Tricks »

Thanks to PHP’s namespaces we can now use Monkey Patching within our projects. In this post there’s a practical example of this feature. We’re going to override the standard behaviour of PHP’s filesystem functions to store files into a CouchDb database as attachments without rewriting our code. Only setting up a namespace.
Posted by gonzalo123 (#3434) 994 days ago (http://gonzalo123.wordpress.com)
Discuss  | Bury | Tweet This | Tagged: php monkey patching namespaces couchdb nosql
Add To 

Who Voted for this Story

Comments

No one has commented on this article yet.

Log in to comment or register here.