"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php" between
Zikula_Core-2.0.11.tar.gz and Zikula_Core-2.0.12.tar.gz

About: Zikula is a Flexible Open Source Application Framework and CMS (based on Symfony 3.x).

PhpEngine.php  (Zikula_Core-2.0.11):PhpEngine.php  (Zikula_Core-2.0.12)
skipping to change at line 369 skipping to change at line 369
{ {
$this->escapers[$context] = $escaper; $this->escapers[$context] = $escaper;
self::$escaperCache[$context] = array(); self::$escaperCache[$context] = array();
} }
/** /**
* Gets an escaper for a given context. * Gets an escaper for a given context.
* *
* @param string $context The context name * @param string $context The context name
* *
* @return callable $escaper A PHP callable * @return callable A PHP callable
* *
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */
public function getEscaper($context) public function getEscaper($context)
{ {
if (!isset($this->escapers[$context])) { if (!isset($this->escapers[$context])) {
throw new \InvalidArgumentException(sprintf('No registered escaper f or context "%s".', $context)); throw new \InvalidArgumentException(sprintf('No registered escaper f or context "%s".', $context));
} }
return $this->escapers[$context]; return $this->escapers[$context];
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)