Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.63 kB
<?php
/*
* This file is part of Zwig.
*
* (c) 2010 Arnaud Le Blanc
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Zwig Extension
*
* @package zwig
* @author Arnaud Le Blanc <arnaud.lb@gmail.com>
*/
class Zwig_Extension extends Twig_Extension
{
public function getTokenParsers()
{
$tokenParser = new Zwig_TokenParser_ViewHelper();
$broker = new Zwig_CatchAllTokenParserBroker($tokenParser);
return array($broker);
}
public function getName()
{
return 'Zwig';
}
}
Jump to Line
Something went wrong with that request. Please try again.