function CaBundle::isReadable
Parameters
string $certFileOrDir:
LoggerInterface|null $logger:
Return value
bool
2 calls to CaBundle::isReadable()
- CaBundle::caDirUsable in vendor/
composer/ ca-bundle/ src/ CaBundle.php - CaBundle::caFileUsable in vendor/
composer/ ca-bundle/ src/ CaBundle.php
File
-
vendor/
composer/ ca-bundle/ src/ CaBundle.php, line 287
Class
- CaBundle
- @author Chris Smith <chris@cs278.org> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\CaBundleCode
private static function isReadable($certFileOrDir, ?LoggerInterface $logger = null) {
$isReadable = @is_readable($certFileOrDir);
if (!$isReadable && $logger) {
$logger->debug(sprintf('Checked file or directory %s is not readable.', $certFileOrDir));
}
return $isReadable;
}