swap filter/function and package names

This commit is contained in:
Christian Flothmann 2018-01-09 13:43:49 +01:00
parent 5f05774f0c
commit 9db699bd8d
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class UndefinedCallableHandler
} }
// Twig will append the source context to the message, so that it will end up being like "[...] Unknown filter "%s" in foo.html.twig on line 123." // Twig will append the source context to the message, so that it will end up being like "[...] Unknown filter "%s" in foo.html.twig on line 123."
throw new SyntaxError(sprintf('Did you forget to run "composer require symfony/%s"? Unknown filter "%s".', $name, self::$filterComponents[$name])); throw new SyntaxError(sprintf('Did you forget to run "composer require symfony/%s"? Unknown filter "%s".', self::$filterComponents[$name], $name));
} }
public static function onUndefinedFunction($name) public static function onUndefinedFunction($name)
@ -71,6 +71,6 @@ class UndefinedCallableHandler
return false; return false;
} }
throw new SyntaxError(sprintf('Did you forget to run "composer require symfony/%s"? Unknown function "%s".', $name, self::$functionComponents[$name])); throw new SyntaxError(sprintf('Did you forget to run "composer require symfony/%s"? Unknown function "%s".', self::$functionComponents[$name], $name));
} }
} }