src/helpers/BaseYaml.php
/**
     * Get the default parser config
     *
     * @return array
     */
Get the default parser config
@return array
Get the default parser config @return array
protected static function defaultParserConfig()
    {
        return [
            'on yii/helpers/UnsetArrayValue' => function ($event) {
                if (!empty($event->value)) {
                    throw new InvalidArgumentException(sprintf('A !yii/helpers/UnsetArrayValue tag cannot contain a value. The value provided was %s', json_encode($event->value)));
                }
                $event->handleValue(new UnsetArrayValue());
            },
            'on yii/helpers/ReplaceArrayValue' => function ($event) {
                $event->handleValue(new ReplaceArrayValue($event->value));
            }
        ];
    }
protected static function defaultParserConfig ( ) { return [ 'on yii/helpers/UnsetArrayValue' => function ( $ event ) { if ( ! empty ( $ event -> value ) ) { throw new InvalidArgumentException ( sprintf ( 'A !yii/helpers/UnsetArrayValue tag cannot contain a value. The value provided was %s' , json_encode ( $ event -> value ) ) ) ; } $ event -> handleValue ( new UnsetArrayValue ( ) ) ; } , 'on yii/helpers/ReplaceArrayValue' => function ( $ event ) { $ event -> handleValue ( new ReplaceArrayValue ( $ event -> value ) ) ; } ] ; }
Get the default parser config
 @return array
Get the default parser config @return array