/** * @param AdviniAdapter $adapter * @param string $value * * @return void */ public function processValue(AdviniAdapter $adapter, &$value) { while (false !== strpos($value, static::PROCESS_TOKEN)) { $adapter->matchValue($value, static::PROCESS_TOKEN, static::PROCESS_PATTERN); } }
/** * @param AdviniAdapter $adapter * @param string $value * * @return void */ public function processValue(AdviniAdapter $adapter, &$value) { $matches = $adapter->matchValue($value, self::PROCESS_TOKEN, '\\[( *[^\\[\\]]+ *)\\]'); $value = $this->importFromFile($adapter, trim($matches[1])); }