* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\Bundle\AsseticBundle\Twig; use Assetic\Extension\Twig\AsseticExtension; use Assetic\Factory\AssetFactory; /** * The static extension is used when use_controllers is disabled. * * @author Kris Wallsmith */ class StaticExtension extends AsseticExtension { public function getTokenParsers() { return array( new StaticTokenParser($this->factory, 'javascripts', 'js/*.js', $this->debug), new StaticTokenParser($this->factory, 'stylesheets', 'css/*.css', $this->debug), new StaticTokenParser($this->factory, 'image', 'images/*', $this->debug, true), ); } }