Scopes: - singleton: one instance of the class is shared - prototype: a new instance of the class is created each time it is requested ### Through annotations Like [Spring](http://static.springsource.org/spring/docs/3.0.0.M3/reference/html/ch04s04.html) or [Flow3](http://flow.typo3.org/documentation/guide/partiii/objectmanagement.html#sect-configuring-objects) ``` php /** * @Scope("singleton") */ class MyClass { } ``` ``` php /** * @Scope("prototype") */ class MyClass { } ``` ### Through configuration To be specified