public static function forge(string $index, string $type) : bool
{
$state = State::instance();
if (!isset($state->gears[$index])) {
$gears = $state->gears;
if (\class_exists($type)) {
$gears[$index] = $type;
$state->gears = $gears;
return true;
}
}
return false;
}