mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00

* moved some admin html code from php to twig templates (.html files) * minimum PHP version required by installer is now 5.1.2, cause of spl_autoload_register functon. * depracated Twig to version 1.20.0 cause of Autoloader * removed unused admin stylish template
36 lines
664 B
PHP
Executable File
36 lines
664 B
PHP
Executable File
<?php
|
|
|
|
/*
|
|
* This file is part of Twig.
|
|
*
|
|
* (c) 2010 Fabien Potencier
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
class Twig_Extension_Optimizer extends Twig_Extension
|
|
{
|
|
protected $optimizers;
|
|
|
|
public function __construct($optimizers = -1)
|
|
{
|
|
$this->optimizers = $optimizers;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getNodeVisitors()
|
|
{
|
|
return array(new Twig_NodeVisitor_Optimizer($this->optimizers));
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getName()
|
|
{
|
|
return 'optimizer';
|
|
}
|
|
}
|