Neos\Flow\ObjectManagement\ObjectManagerInterface::getCaseSensitiveObjectName PHP Метод

getCaseSensitiveObjectName() публичный Метод

In general, the case sensitive variant is used everywhere in Flow, however there might be special situations in which the case sensitive name is not available. This method helps you in these rare cases.
public getCaseSensitiveObjectName ( string $caseInsensitiveObjectName ) : mixed
$caseInsensitiveObjectName string The object name in lower-, upper- or mixed case
Результат mixed Either the mixed case object name or FALSE if no object of that name was found.
    public function getCaseSensitiveObjectName($caseInsensitiveObjectName);

Usage Example

 /**
  * Resolves the class name of an authentication provider. If a valid provider class name is given, it is just returned.
  *
  * @param string $providerName The (short) name of the provider
  * @return string The object name of the authentication provider
  * @throws NoAuthenticationProviderFoundException
  */
 public function resolveProviderClass($providerName)
 {
     $resolvedObjectName = $this->objectManager->getCaseSensitiveObjectName($providerName);
     if ($resolvedObjectName !== false) {
         return $resolvedObjectName;
     }
     $resolvedObjectName = $this->objectManager->getCaseSensitiveObjectName('Neos\\Flow\\Security\\Authentication\\Provider\\' . $providerName);
     if ($resolvedObjectName !== false) {
         return $resolvedObjectName;
     }
     throw new NoAuthenticationProviderFoundException('An authentication provider with the name "' . $providerName . '" could not be resolved.', 1217154134);
 }
All Usage Examples Of Neos\Flow\ObjectManagement\ObjectManagerInterface::getCaseSensitiveObjectName