예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getDefaultScope()
 {
     return Scope::singleton();
 }
예제 #2
0
파일: ContainerTest.php 프로젝트: brick/di
 /**
  * @return array
  */
 public function testScopeProvider()
 {
     return [[Scope::singleton(), Scope::singleton(), true, true], [Scope::singleton(), Scope::prototype(), true, true], [Scope::prototype(), Scope::singleton(), false, true], [Scope::prototype(), Scope::prototype(), false, false]];
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function getDefaultScope()
 {
     return Scope::prototype();
 }