detectFlowPackageFilePath() public method

Detects if the package contains a package file and returns the path and classname.
public detectFlowPackageFilePath ( string $packageKey, string $absolutePackagePath ) : array
$packageKey string The package key
$absolutePackagePath string Absolute path to the package
return array The path to the package file and classname for this package or an empty array if none was found.
 /**
  * @param string $packageKey
  * @param string $packagePath
  * @param array $composerManifest
  * @param string $state
  * @return array
  */
 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)];
 }