Skip to content

Template processor setValue() improvements #614

@dmitryfar

Description

@dmitryfar

Template processor improvements:

in setValueForPart() method this strings manipulation calls for each document header, footer and main part:

    if (substr($search, 0, 2) !== '${' && substr($search, -1) !== '}') {
        $search = '${' . $search . '}';
    }

    if (!String::isUTF8($replace)) {
        $replace = utf8_encode($replace);
    }

Move it to setValue() method to reduce time of these operations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions