throw new RuntimeException(sprintf('Error parsing JSON from asset manifest file "%s": ',
$this->manifestPath
).
$e->
getMessage(), previous:
$e);
} } } if (isset($this->manifestData
[$path])) { return $this->manifestData
[$path];
} if ($this->strictMode
) { $message =
sprintf('Asset "%s" not found in manifest "%s".',
$path,
$this->manifestPath
);
$alternatives =
$this->
findAlternatives($path,
$this->manifestData
);
if (\
count($alternatives) > 0
) { $message .=
sprintf(' Did you mean one of these? "%s".',
implode('", "',
$alternatives));
} throw new AssetNotFoundException($message,
$alternatives);
} return null;
} private function findAlternatives(string
$path, array
$manifestData): array
{