function setSetting($setting)
    {
        if (!is_string($setting) && !is_array($setting) && !$setting instanceof \Traversable)
            throw new \InvalidArgumentException(sprintf(
                'Config must be array, Traversable or string as service represent these both; given: (%s).'
                , \Poirot\Std\flatten($setting)
            ));

        $this->setting = $setting;
        return $this;
    }
function setSetting($setting)
    {
        if (!is_string($setting) && !is_array($setting) && !$setting instanceof \Traversable)
            throw new \InvalidArgumentException(sprintf(
                'Config must be array, Traversable or string as service represent these both; given: (%s).'
                , \Poirot\Std\flatten($setting)
            ));

        $this->setting = $setting;
        return $this;
    }
function setSetting ( $ setting ) { if ( ! is_string ( $ setting ) && ! is_array ( $ setting ) && ! $ setting instanceof \ Traversable ) throw new \ InvalidArgumentException ( sprintf ( 'Config must be array, Traversable or string as service represent these both; given: (%s).' , \ Poirot \ Std \ flatten ( $ setting ) ) ) ; $ this -> setting = $ setting ; return $ this ; }
Set Sapi Config

! String for service attain to settings

@param string|array|\Traversable $setting

@return $this
Set Sapi Config