src/ThemeManager/ThemeManager.php
public function addThemeLocation($path)
    {
        if (! empty($path) && ! $this->themes()->pathExists($path)) {
            $addLocation = (new Starter(true))->start($path, $this->themes()->getRequiredFields(), $this->themes()->getExceptionOnInvalid());

            $all = array_merge($this->getInvalidThemes(), $addLocation->all(), $addLocation->getInvalidThemes());

            $this->themes = $this->themes()->merge($all, $path);
        }

        return $this;
    }
public function addThemeLocation($path)
    {
        if (! empty($path) && ! $this->themes()->pathExists($path)) {
            $addLocation = (new Starter(true))->start($path, $this->themes()->getRequiredFields(), $this->themes()->getExceptionOnInvalid());

            $all = array_merge($this->getInvalidThemes(), $addLocation->all(), $addLocation->getInvalidThemes());

            $this->themes = $this->themes()->merge($all, $path);
        }

        return $this;
    }
@param         $path

@return $this