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
        ];
    }
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
        ];
    }
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 ] ; }
Setup for actions and options

@deprecated 1.2.0 No longer recommended, use Bridge::registerGroup() instead

@param string $prefix
@param array  $actions
@param array  $options
Setup for actions and options