Add a path and an optional argument to this request.

@param string      $name     Path to add.
@param string|null $argument Optional argument to add.

@return RequestBuilder
963452
public function addPath($name, $argument = null)
    {
        $this->path[] = $name;
        if ($argument !== null) {
            $this->path[] = $argument;
        }

        return $this;
    }
789763
public function removePathParameter($name)
    {
        if (!$this->hasPathParameter($name)) {
            throw new \InvalidArgumentException(sprintf('The path request parameter "%s" does not exist.', $name));
        }

        unset($this->pathParameters[$name]);
    }
279598
public function getRoute(string $name = null, ...$args)
    {
        if (is_null($name)) {
            return $this->get('route');
        }

        return $this->get('route', $name, ...$args);
    }
178301
public function addReplyTo(string $address, ?string $name = null): Message
    {
        $this->replyTo[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
283978
public function add( $name = null ) {
		$name = $name ? $name : $this->getName();
		$path = __DIR__;
		$name = ucfirst( $name );
		include  "{$path}/Views/{$name}.php";
	}
499827
public function call($name, array $arguments = [])
    {
        $this->initSteps($name, $row, $last);
        $isCallable = is_callable($row);

        if (!$isCallable && !$last)
        {
            return $row;
        }

        return call_user_func_array(
            $isCallable ? $row : [$row, $last],
            (new Argument($this, $arguments))->get()
        );
    }
120568
public function addLink(string $name, string $link = null, array $arguments = [], int $position = null): Link
	{
		/* @var $item Link */
		$item = $this->addItem(new Link($name, $link, $arguments), $position);
		return $this->getMenu()->attachLink($item);
	}
631041
public function add($path, $controller, $name = null)
    {
        $route = new Route($path);
        $route->setDefault('_controller', $controller);
        $this->addRoute($route, $name);

        return $route;
    }
200256
public function getPathParameter($name)
    {
        if (!$this->hasPathParameter($name)) {
            throw new \InvalidArgumentException(sprintf('The path request parameter "%s" does not exist.', $name));
        }

        return $this->pathParameters[$name];
    }
1343542
public function put($path, $callable, $name = null) {
		return $this->add($path, $callable, $name, self::HTTP_METHOD_PUT);
	}
672534
public function pathBuilder($name = null, array $options = []) {
		if ($name instanceof PathBuilderInterface) {
			$this->_pathBuilder = $name;

			return $this->_pathBuilder;
		}

		if ($name !== null) {
			$this->_pathBuilder = $this->createPathBuilder($name, $options);
		}

		return $this->_pathBuilder;
	}
1305024
public function extract(
        Name $name,
        StreamInterface $arguments,
        Argument $argument
    ): StreamInterface {
        try {
            return $this
                ->get($name)
                ->extract($name->withoutRoot(), $arguments, $argument);
        } catch (ReferenceNotFound $e) {
            throw new ReferenceNotFound((string) $name, 0, $e);
        }
    }
792425
protected function makeFromPath($name, $path)
    {
        if (!$this->get($name)) {

            $params = [
                'name' => $name,
                'path' => rtrim($path, '/') . '/' . $name
            ];

            $module = IOC::resolve('Module', $params);
            $this->add($module->getName(), $module->create());

            return $module;
        }

        return null;
    }
1346774
public function addCustomUrl(
        CustomUrlAddData $data = null,
        ?string $name = null
    ): FormInterface {
        $name = $name ?: StringUtil::fqcnToBlockPrefix(CustomUrlAddType::class);

        return $this->formFactory->createNamed($name, CustomUrlAddType::class, $data ?? new CustomUrlAddData());
    }
1343390
public function add($name, $value = null)
    {
        if (empty($name)) {
            return $this;
        }

        $params = (!is_array($name) ? array($name => $value) : $name);

        $query = $this->query(true);

        foreach ($params as $key => $val) {
            if (empty($val)) {
                unset($query[$key]);
            } elseif (!empty($val)) {
                $query[$key] = $val;
            }
        }

        $query              = http_build_query($query);
        $this->url['query'] = $query;

        return $this;
    }
941524
protected function getKey($name, $arguments)
    {
        if (empty($arguments)) {
            return null;
        }
        if (is_string($arguments[0])) {
            return $arguments[0];
        } else {
            return null;
        }
    }
1052107
public function addPathHeader($name, $path = null)
    {
        $this->storeHeader($name, $this->factory->createPathHeader($name, $path));
    }