/** * @param ForgeInterface $forge * * @Ray\Di\Di\Inject */ public function __construct(ForgeInterface $forge) { parent::__construct($forge); }
public function __construct($settings, $autoResolve = false) { $resolver = $this->newResolver($autoResolve); parent::__construct(new InjectionFactory($resolver)); $this->registerDefaultServices($settings); }