protected function preparePackageStateConfiguration($packageKey, $packagePath, $composerManifest, $state = self::PACKAGE_STATE_ACTIVE)
{
$autoload = isset($composerManifest['autoload']) ? $composerManifest['autoload'] : [];
return ['state' => $state, 'packageKey' => $packageKey, 'packagePath' => str_replace($this->packagesBasePath, '', $packagePath), 'composerName' => $composerManifest['name'], 'autoloadConfiguration' => $autoload, 'packageClassInformation' => $this->packageFactory->detectFlowPackageFilePath($packageKey, $packagePath)];
}