public function add($options, $arguments = true)
    {
        if (is_array($options)) {
            return $this->register($options);
        }

        return $this->register([$options => $arguments]);
    }
public function add($options, $arguments = true)
    {
        if (is_array($options)) {
            return $this->register($options);
        }

        return $this->register([$options => $arguments]);
    }
public function add ( $ options , $ arguments = true ) { if ( is_array ( $ options ) ) { return $ this -> register ( $ options ) ; } return $ this -> register ( [ $ options => $ arguments ] ) ; }
Add support for options.

@param array|string $options
@param mixed $arguments

@return self
Add support for options .