mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
10 lines
292 B
Markdown
10 lines
292 B
Markdown
# 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
|