コード例 #1
0
 public function __construct()
 {
     parent::__construct(Key::ofType("Spot\\Inject\\Injector"));
 }
コード例 #2
0
 public function __construct(Key $key, ConstantBinding $default)
 {
     parent::__construct($key);
     $this->default = $default;
 }
コード例 #3
0
ファイル: InlineBinding.php プロジェクト: spotframework/spot
 public function __construct(Type $type, array $dependencies)
 {
     parent::__construct(Key::ofType($type->name));
     $this->type = $type;
     $this->dependencies = $dependencies;
 }
コード例 #4
0
ファイル: ConfigBinding.php プロジェクト: spotframework/spot
 public function __construct($name, $source)
 {
     parent::__construct(Key::ofConstant(Named::name($name)));
     $this->name = $name;
     $this->source = $source;
 }