function SMime::normalizeFilePath
2 calls to SMime::normalizeFilePath()
- SMimeEncrypter::__construct in vendor/
symfony/ mime/ Crypto/ SMimeEncrypter.php - SMimeSigner::__construct in vendor/
symfony/ mime/ Crypto/ SMimeSigner.php
File
-
vendor/
symfony/ mime/ Crypto/ SMime.php, line 24
Class
- SMime
- @author Sebastiaan Stok <s.stok@rollerscapes.net>
Namespace
Symfony\Component\Mime\CryptoCode
protected function normalizeFilePath(string $path) : string {
if (!file_exists($path)) {
throw new RuntimeException(\sprintf('File does not exist: "%s".', $path));
}
return 'file://' . str_replace('\\', '/', realpath($path));
}