"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Bridge/Twig/UndefinedCallableHandler.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

UndefinedCallableHandler.php  (phplist-3.4.5.tgz):UndefinedCallableHandler.php  (phplist-3.4.6.tgz)
skipping to change at line 74 skipping to change at line 74
'workflow' => 'enable "framework.workflows"', 'workflow' => 'enable "framework.workflows"',
]; ];
public static function onUndefinedFilter($name) public static function onUndefinedFilter($name)
{ {
if (!isset(self::$filterComponents[$name])) { if (!isset(self::$filterComponents[$name])) {
return false; return false;
} }
self::onUndefined($name, 'filter', self::$filterComponents[$name]); self::onUndefined($name, 'filter', self::$filterComponents[$name]);
return true;
} }
public static function onUndefinedFunction($name) public static function onUndefinedFunction($name)
{ {
if (!isset(self::$functionComponents[$name])) { if (!isset(self::$functionComponents[$name])) {
return false; return false;
} }
self::onUndefined($name, 'function', self::$functionComponents[$name]); self::onUndefined($name, 'function', self::$functionComponents[$name]);
return true;
} }
private static function onUndefined($name, $type, $component) private static function onUndefined($name, $type, $component)
{ {
if (class_exists(FullStack::class) && isset(self::$fullStackEnable[$comp onent])) { if (class_exists(FullStack::class) && isset(self::$fullStackEnable[$comp onent])) {
throw new SyntaxError(sprintf('Did you forget to %s? Unknown %s "%s" .', self::$fullStackEnable[$component], $type, $name)); throw new SyntaxError(sprintf('Did you forget to %s? Unknown %s "%s" .', self::$fullStackEnable[$component], $type, $name));
} }
throw new SyntaxError(sprintf('Did you forget to run "composer require s ymfony/%s"? Unknown %s "%s".', $component, $type, $name)); throw new SyntaxError(sprintf('Did you forget to run "composer require s ymfony/%s"? Unknown %s "%s".', $component, $type, $name));
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

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