public function set($name, $value = null)
    {
        $values = is_array($name) ? $name : [$name => $value];
        foreach ($values as $name => $value) {
            $this->itemSetting[$name] = $value;
        }

        unset($this->items[$name]);
    }
public function set($name, $value = null)
    {
        $values = is_array($name) ? $name : [$name => $value];
        foreach ($values as $name => $value) {
            $this->itemSetting[$name] = $value;
        }

        unset($this->items[$name]);
    }
public function set ( $ name , $ value = null ) { $ values = is_array ( $ name ) ? $ name : [ $ name => $ value ] ; foreach ( $ values as $ name => $ value ) { $ this -> itemSetting [ $ name ] = $ value ; } unset ( $ this -> items [ $ name ] ) ; }
Set one or multiple items, or factory function of items, or class of items, into DI container.
Set one or multiple items or factory function of items or class of items into DI container .