public function normalizeArray($objects)
    {
        $normal = [];
        foreach ($objects as $i => $objectName) {
            $config = [];
            if (!is_int($i)) {
                $config = (array)$objectName;
                $objectName = $i;
            }
            list(, $name) = pluginSplit($objectName);
            if (isset($config['class'])) {
                $normal[$name] = $config;
            } else {
                $normal[$name] = ['class' => $objectName, 'config' => $config];
            }
        }

        return $normal;
    }
public function normalizeArray($objects)
    {
        $normal = [];
        foreach ($objects as $i => $objectName) {
            $config = [];
            if (!is_int($i)) {
                $config = (array)$objectName;
                $objectName = $i;
            }
            list(, $name) = pluginSplit($objectName);
            if (isset($config['class'])) {
                $normal[$name] = $config;
            } else {
                $normal[$name] = ['class' => $objectName, 'config' => $config];
            }
        }

        return $normal;
    }
public function normalizeArray ( $ objects ) { $ normal = [ ] ; foreach ( $ objects as $ i => $ objectName ) { $ config = [ ] ; if ( ! is_int ( $ i ) ) { $ config = ( array ) $ objectName ; $ objectName = $ i ; } list ( , $ name ) = pluginSplit ( $ objectName ) ; if ( isset ( $ config [ 'class' ] ) ) { $ normal [ $ name ] = $ config ; } else { $ normal [ $ name ] = [ 'class' => $ objectName , 'config' => $ config ] ; } } return $ normal ; }
Normalizes an object array, creates an array that makes lazy loading
easier

@param array $objects Array of child objects to normalize.
@return array Array of normalized objects.
Normalizes an object array creates an array that makes lazy loading easier