3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2015 Spring Signage Ltd
5
* (ByteFormatterTwigExtension.php)
12
class ByteFormatterTwigExtension extends \Twig_Extension
14
public function getName()
16
return 'byteFormatter';
19
public function getFilters()
22
new \Twig_SimpleFilter('byteFormat', array($this, 'byteFormat'))
26
public function byteFormat($bytes)
28
return ByteFormatter::format($bytes);
b'\\ No newline at end of file'