/** * @param $name * @param array $config * @param array ...$args */ function __construct($name, $config = [], ...$args) { parent::__construct([$this, 'scope'], [new Link(), $this->plugins($config), $name, new Args($args)]); }
/** * @param string $name * @param string $service * @param mixed|null|Resolvable $plugin */ function __construct($name, $service, $plugin = null) { parent::__construct([$this, 'register'], [new Link(), [Arg::NAME => $name, Arg::SERVICE => $service, Arg::PLUGIN => $plugin]]); }