Symfony\Component\Filesystem\Filesystem::makePathRelative
Given an existing path, convert it to a path relative to a given starting path
Signature
public function makePathRelative(string
$endPath,
string
$startPath )
Parameters
$endPath
— string- Absolute path of target
$startPath
— string- Absolute path where traversal begins
Returns
- string
- Path of target relative to starting path