Neos\Flow\Package\PackageManagerInterface::getCaseSensitivePackageKey PHP Метод

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

Returns the upper camel cased version of the given package key or FALSE if no such package is available.
public getCaseSensitivePackageKey ( string $unknownCasedPackageKey ) : mixed
$unknownCasedPackageKey string The package key to convert
Результат mixed The upper camel cased package key or FALSE if no such package exists
    public function getCaseSensitivePackageKey($unknownCasedPackageKey);

Usage Example

 /**
  * Sets the package key of the controller.
  *
  * This function tries to determine the correct case for the given package key.
  * If the Package Manager does not know the specified package, the package key
  * cannot be verified or corrected and is stored as is.
  *
  * @param string $packageKey The package key
  * @return void
  * @api
  */
 public function setControllerPackageKey($packageKey)
 {
     $correctlyCasedPackageKey = $this->packageManager->getCaseSensitivePackageKey($packageKey);
     $this->controllerPackageKey = $correctlyCasedPackageKey !== false ? $correctlyCasedPackageKey : $packageKey;
 }