public static function register(string $prefix, array $actions = [], array $options = [])
    {
        $handler = new ErrorHandler();
        $handler->register();

        Yii::$app->set('errorHandler', $handler);

        Yii::$app->controllerMap[$prefix] = [
            'class'         => get_called_class(),
            'actions'       => $actions,
            'optionAliases' => $options
        ];
    }