Design patterns used in symfony2

14,816

Solution 1

I just created this graph. As a guideline for a course on Sf2.

enter image description here

Solution 2

I think you can find any design pattern exploring Symfony2 components. For example, Form component provide you with Factory, Facade, Composite, Builder, Flyweight pattern examples.

And don't forget about the main Dependency Injection pattern used in Symfony2

Share:
14,816
Mohammed H
Author by

Mohammed H

Bye Stack Overflow!

Updated on June 06, 2022

Comments

  • Mohammed H
    Mohammed H almost 2 years

    In symfony2, the services using Singleton patterns. Doctrine uses Unit of work patterns. I wonder a lot of design patterns may be used in symfony2. I think it will be useful to have better understanding of design patterns. My question is what are the design patterns used in symfony2?