README Proxy

This commit is contained in:
Dominik Liebler 2013-09-24 14:04:00 +02:00
parent c8d88b0b08
commit 4d916f3ffe
2 changed files with 10 additions and 9 deletions

9
Proxy/README.md Normal file
View File

@ -0,0 +1,9 @@
# Proxy
## Purpose
To interface to anything that is expensive or impossible to duplicate.
## Examples
* Doctrine2 uses proxies to implement framework magic (e.g. lazy initialization) in them, while the user still works with his own entity classes and will never use nor touch the proxies

View File

@ -3,15 +3,7 @@
namespace DesignPatterns\Proxy;
/**
* Proxy pattern
*
* Purpose:
* to interface to anything that is expensive or impossible to duplicate
*
* Examples:
* - Doctrine2 uses proxies to implement framework magic (e.g. lazy initialization) in them, while the user still works
* with his own entity classes and will never use nor touch the proxies
*
* class Record
*/
class Record
{