public function getRelativePath($fileName)
{
foreach ($this->configuration->getOption(CO::SOURCE) as $directory) {
if (strpos($fileName, $directory) === 0) {
return $this->getFileNameWithoutSourcePath($fileName, $directory);
}
}
throw new InvalidArgumentException(sprintf('Could not determine "%s" relative path', $fileName));
}