Neos\Flow\Core\Migrations\AbstractMigration::searchAndReplaceRegex PHP Метод

searchAndReplaceRegex() защищенный Метод

The patterns are used as is, no quoting is done. A closure can be given for the $replacement variable. It should return a string and is given an array of matches as parameter.
protected searchAndReplaceRegex ( string $search, string | Closure $replacement, array | string $filter = ['php', 'yaml', 'html'] ) : void
$search string
$replacement string | Closure
$filter array | string either an array with file extensions to consider or the full path to a single file to process
Результат void
    protected function searchAndReplaceRegex($search, $replacement, $filter = array('php', 'yaml', 'html'))
    {
        $this->operations['searchAndReplace'][] = array($search, $replacement, $filter, true);
    }