ldc-groupe/public/app/mu-plugins/acfml/classes/Upgrade/CommandsProvider.php
2025-04-02 09:41:51 +02:00

26 lines
428 B
PHP

<?php
namespace ACFML\Upgrade;
use ACFML\Upgrade\Commands\MigrateToV2;
use ACFML\Upgrade\Commands\MigrateToV2_1;
class CommandsProvider {
/**
* @return \WPML\Collect\Support\Collection
*/
public static function get() {
return wpml_collect( [
MigrateToV2::class,
MigrateToV2_1::class,
] );
}
/**
* @return string
*/
public static function getHash() {
return md5( self::get()->implode( ',' ) );
}
}