Enterprise Patterns
摘要
PHP is, first and foremost, a language designed for the Web. And, because of its extensive support for objects, we can take advantage of patterns hatched in the context of other object-oriented languages, particularly Java. I develop a single example with many variations in this chapter, using it to illustrate the patterns I cover. Because of the amount of material to cover, this is one of this book’s longest and most involved chapters, and it may be a challenge to traverse it in one sitting. It is divided into an introduction and two main parts. These dividing lines might make good break points.I also describe the individual patterns in the “Architecture Overview” section. Although these are interdependent to some extent, you should be able to jump straight to any particular pattern and work through it independently, moving on to related patterns at your leisure.