/**
* 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;
}