/** * Check if an extension is loaded. * * @param string $extensionKey The extension key * * @throws \InvalidArgumentException * @return void */ protected function checkExtensionLoaded($extensionKey) { if (!$this->installUtility->isLoaded($extensionKey)) { throw new InvalidArgumentException(sprintf('Extension "%s" is not installed!', $extensionKey)); } }