I have some filters which I am using in twig, eg number_format .
Now I want to use this same extension in services, How can I call it ?
Try create service number_format and then invoke it in twig extenstion. In this way you can use it in twig and other services :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.