예제 #1
0
파일: FactoryService.php 프로젝트: splot/di
 public function __construct($name, $factoryService, $factoryMethod, array $factoryArguments = array())
 {
     parent::__construct($name);
     $this->setFactoryService($factoryService);
     $this->setFactoryMethod($factoryMethod);
     $this->setFactoryArguments($factoryArguments);
 }
예제 #2
0
파일: ObjectService.php 프로젝트: splot/di
 public function __construct($name, $object)
 {
     parent::__construct($name);
     $this->instance = $object;
     $this->class = Debugger::getType($object);
 }
예제 #3
0
파일: ClosureService.php 프로젝트: splot/di
 public function __construct($name, $closure)
 {
     parent::__construct($name);
     $this->closure = $closure;
 }