Page MenuHomePhabricator

Move block type constants to BlockUtils service
Open, Needs TriagePublic

Description

Now that BlockUtils has been introduced in T263189, move the AbstractBlock type constants there:

# TYPE constants
# Do not introduce negative constants without changing BlockUser command object.
public const TYPE_USER = 1;
public const TYPE_IP = 2;
public const TYPE_RANGE = 3;
public const TYPE_AUTO = 4;
public const TYPE_ID = 5;

Presumably these will need to be deprecated.