26 lines
428 B
PHP
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( ',' ) );
|
|
}
|
|
}
|