This commit is contained in:
root
2012-09-24 10:32:34 +10:00
parent 9a98427138
commit 9e4a5f2cb0
81 changed files with 10309 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace BodyRep\Twig\Extension;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Bundle\TwigBundle\Loader\FilesystemLoader;
use CG\Core\ClassUtils;
class TemplateExtension extends \Twig_Extension
{
protected $loader;
protected $controller;
public function __construct(FilesystemLoader $loader)
{
$this->loader = $loader;
}
public function setController($controller)
{
$this->controller = $controller;
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName()
{
return 'demo';
}
}