コード例 #1
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]];
 }
コード例 #2
0
ファイル: AliasDefinition.php プロジェクト: brick/di
 /**
  * {@inheritdoc}
  */
 public function getDefaultScope()
 {
     return Scope::prototype();
 }