Neos\Flow\Core\Booting\Scripts::getListOfPackagesWithConfiguredObjects PHP Method

getListOfPackagesWithConfiguredObjects() protected static method

protected static getListOfPackagesWithConfiguredObjects ( Bootstrap $bootstrap ) : array
$bootstrap Neos\Flow\Core\Bootstrap
return array
    protected static function getListOfPackagesWithConfiguredObjects($bootstrap)
    {
        $objectManager = $bootstrap->getEarlyInstance(ObjectManagerInterface::class);
        $packagesWithConfiguredObjects = array_reduce($objectManager->getAllObjectConfigurations(), function ($foundPackages, $item) {
            if (isset($item['p']) && !in_array($item['p'], $foundPackages)) {
                $foundPackages[] = $item['p'];
            }
            return $foundPackages;
        }, []);
        return $packagesWithConfiguredObjects;
    }