コード例 #1
0
ファイル: ScopesTest.php プロジェクト: octahedron/pulp
 public function testScopeIsSingleton()
 {
     $scope = Scopes::instance();
     $otherScope = Scopes::instance();
     $this->assertSame($scope, $otherScope);
 }
コード例 #2
0
ファイル: Binding.php プロジェクト: octahedron/pulp
 public function __construct($interface)
 {
     $this->interface = $interface;
     $this->scope = Scopes::instance();
 }