src/Phossa2/Logger/Processor/InterpolateProcessor.php
protected function replaceWith(
        /*# string */ $name,
        /*# string */ $placeholder,
        array &$context
    )/*# : string */ {
        // exact match
        if (isset($context[$name])) {
            return $this->getString($context[$name]);
        }

        // something like user.name
        $first = explode('.', $name)[0];
        if (false !== strpos($name, '.') && isset($context[$first])) {
            return $this->getSubPart($name, $placeholder, $context[$first]);
        }

        // not found
        return $placeholder;
    }
protected function replaceWith(
        /*# string */ $name,
        /*# string */ $placeholder,
        array &$context
    )/*# : string */ {
        // exact match
        if (isset($context[$name])) {
            return $this->getString($context[$name]);
        }

        // something like user.name
        $first = explode('.', $name)[0];
        if (false !== strpos($name, '.') && isset($context[$first])) {
            return $this->getSubPart($name, $placeholder, $context[$first]);
        }

        // not found
        return $placeholder;
    }
protected function replaceWith ( /*# string */ $ name , /*# string */ $ placeholder , array & $ context ) /*# : string */ { // exact match if ( isset ( $ context [ $ name ] ) ) { return $ this -> getString ( $ context [ $ name ] ) ; } // something like user.name $ first = explode ( '.' , $ name ) [ 0 ] ; if ( false !== strpos ( $ name , '.' ) && isset ( $ context [ $ first ] ) ) { return $ this -> getSubPart ( $ name , $ placeholder , $ context [ $ first ] ) ; } // not found return $ placeholder ; }
Replace with values from the context array

@param  string $name
@param  string $placeholder
@param  array &$context
@return string
@access protected
Replace with values from the context array