diff options
Diffstat (limited to 'vendor/smarty/smarty/src/Template/Config.php')
-rw-r--r-- | vendor/smarty/smarty/src/Template/Config.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/smarty/smarty/src/Template/Config.php b/vendor/smarty/smarty/src/Template/Config.php new file mode 100644 index 000000000..b2fcbf813 --- /dev/null +++ b/vendor/smarty/smarty/src/Template/Config.php @@ -0,0 +1,36 @@ +<?php + +namespace Smarty\Template; + +use Smarty\Smarty; +use Smarty\Template; +use Smarty\Exception; + +/** + * Smarty Config Resource Data Object + * Metadata Container for Config Files + * + * @author Uwe Tews + */ +class Config extends Source { + + /** + * Flag that source is a config file + * + * @var bool + */ + public $isConfig = true; + + /** + * @var array + */ + static protected $_incompatible_resources = ['extends' => true]; + + public function createCompiler(): \Smarty\Compiler\BaseCompiler { + return new \Smarty\Compiler\Configfile($this->smarty); + } + + protected static function getDefaultHandlerFunc(Smarty $smarty) { + return $smarty->default_config_handler_func; + } +} |