Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SMime.php

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\Crypto

Code

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));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal