1234567891011121314151617181920212223242526272829303132 |
- <?php
- /*
- * This file is part of the Symfony framework.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * 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 <kris.wallsmith@symfony.com>
- */
- 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),
- );
- }
- }
|