src/AssetFactory.php
private static function migrateConfig(array $config): array
    {
        // if old format "type" and "class" is set, migrate.
        if (isset($config['class'])) {
            do_action(
                'inpsyde.assets.debug',
                'The asset config-format with "type" and "class" is deprecated.',
                $config
            );

            $config['location'] = $config['type'] ?? Asset::FRONTEND;
            $config['type'] = $config['class'];

            unset($config['class']);
        }

        return $config;
    }
private static function migrateConfig(array $config): array
    {
        // if old format "type" and "class" is set, migrate.
        if (isset($config['class'])) {
            do_action(
                'inpsyde.assets.debug',
                'The asset config-format with "type" and "class" is deprecated.',
                $config
            );

            $config['location'] = $config['type'] ?? Asset::FRONTEND;
            $config['type'] = $config['class'];

            unset($config['class']);
        }

        return $config;
    }
Migration of old config "type" => "location", "class" => "type" definition.

@example [ 'type' => Asset::FRONTEND, 'class' => Script::class ]
=> [ 'location' => Asset::FRONTEND, 'type' => Script::class ]

@since 1.1

@param array $config

@return array