Prepend all added fields paths

@param $pathContext

@return $this
967167
public function prependByPathContext($pathContext)
    {
        $this->pathContext($pathContext);

        foreach ($this->getPathNormalizers() as $field => $normalizer) {
            $this->path($field, $normalizer[ 'pathWithoutContext' ], $normalizer[ 'defaultValue' ]);
        }

        return $this;
    }
661645
public function append(string ...$parts): self
    {
        array_unshift($parts, $this->path);

        return self::make(...$parts);
    }
1056303
public function prep_path($path)
	{
		$path = str_replace(array('/', '\\'), DS, $path);
		return rtrim($path, DS).DS;
	}
878208
public function addContext($context = [])
    {
        if (!$context || empty($context)) {
            return $this;
        }
        $this->nestContext($context);
        $this->sanitizeContext($context);
        $this->context = array_merge($this->context, $context);

        return $this;
    }
1570
public function addPath($path)
    {
        if (empty($path) || false === ($real_path = realpath($path))) {
            throw new FileNotFoundException(null, 0, null, $path);
        }
        $this->paths[] = $real_path;

        return $this;
    }
5599
public function add($prefix, $paths, $prepend = false) {
		if (!$prefix) {
			if ($prepend) {
				$this->fallbackDirs = array_merge(
					(array) $paths,
					$this->fallbackDirs
				);
			}
			else {
				$this->fallbackDirs = array_merge(
					$this->fallbackDirs,
					(array) $paths
				);
			}

			return;
		}

		if (!isset($this->prefixes[$prefix])) {
			$this->prefixes[$prefix] = (array) $paths;
			return;
		}

		if ($prepend) {
			$this->prefixes[$prefix] = array_merge(
				(array) $paths,
				$this->prefixes[$prefix]
			);
		}
		else {
			$this->prefixes[$prefix] = array_merge(
				$this->prefixes[$prefix],
				(array) $paths
			);
		}
	}
1235748
protected function before(Context $context)
    {
        // set context forwarder
        $context->forwarder = $context->forwarder ?: [$this, 'forward'];

        return parent::before($context);
    }
741870
public function add_template_directory($path, $namespace = null, $prepend = false) {
		$this->template->add_template_directory($path, $namespace, $prepend);
	}
60725
function prepend(iUriSequence $prependUri)
    {
        $prependPath = $prependUri->getPath();
        if (empty($prependPath))
            return $this;

        $toPath = $this->getPath();
        if ($this->isAbsolute())
            $toPath = $this->_makeNoneAbsolutePathSequence($toPath);

        $finalPath   = array_merge($prependPath, $toPath);

        $this->setPath($finalPath);
        return $this;
    }
525115
public static function prepend($path, $data) {
		if (self::exists($path)) {
			return self::write($path, $data.self::read($path));
		}
		return self::write($path, $data);
	}
43354
protected function addNewPath($path, $alias, $mode)
    {
        if ($cleanPath = $this->cleanPathInternal($path)) {
            if ($mode === self::MOD_PREPEND) {
                array_unshift($this->paths[$alias], $cleanPath);
            }

            if ($mode === self::MOD_APPEND) {
                $this->paths[$alias][] = $cleanPath;
            }
        }
    }
225302
public function append($path) {
		if ($path instanceof Path) {
			$path = $path->getPathname();
		}
		
		if (!$this->hasTrailingSeparator()) {
			$this->addTrailingSeparator();
		}
		
		return new Path($this->getPathname()->append($path));
	}
336895
public function appendAll($appended)
    {
        foreach ($this->storage as &$path) {
            $path->append($appended);
        }

        return $this;
    }
151612
public function appendToUploadPath($appendedPath)
    {
        $this->uploadTo = trim($this->uploadTo, '/').'/'.trim($appendedPath, '/').'/';

        return $this;
    }
1328154
public static function prependIncludePath(...$path): void
    {
        $finalPaths = [];
        foreach ($path as $r) {

            if (is_array($r)) {
                foreach ($r as $t) {
                    $finalPaths[] = $t;
                }
            } else {
                $finalPaths[] = $r;
            }
        }

        foreach (explode(PATH_SEPARATOR, get_include_path()) as $r) {
            $finalPaths[] = $r;
        }

        set_include_path(implode(PATH_SEPARATOR, array_unique($finalPaths)));
    }
243692
public static function prepend($css, $path)
	{
		self::$_prependPath = $path;

		$css = self::_trimUrls($css);

		// append
		$css = preg_replace_callback('/@import\\s+([\'"])(.*?)[\'"]/'
			,array(self::$className, '_processUriCB'), $css);
		$css = preg_replace_callback('/url\\(\\s*([^\\)\\s]+)\\s*\\)/'
			,array(self::$className, '_processUriCB'), $css);

		self::$_prependPath = null;
		return $css;
	}
71075
public function addContexts($contexts)
    {
        if (is_array($contexts)) {
            foreach ($contexts as $context) {
                $this->insertContextInAllowedExtensions($context);
            }
        } elseif ($contexts !== false) {
            $this->insertContextInAllowedExtensions($contexts);
        }

        return $this;
    }