Moved Smarty and Twig renderers into extensions

This commit is contained in:
Alexander Makarov
2013-05-24 15:14:36 +04:00
parent 82a2476e48
commit 9a13ddb8a6
4 changed files with 59 additions and 5 deletions

View File

@@ -0,0 +1,27 @@
{
"name": "yiisoft/yii2-smarty",
"description": "The Smarty integration for the Yii framework",
"keywords": ["yii", "smarty", "renderer"],
"type": "library",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"authors": [
{
"name": "Alenxader Makarov",
"email": "sam@rmcreative.ru"
}
],
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-0": { "yii\\smarty": "" }
}
}

View File

@@ -7,13 +7,13 @@
* @license http://www.yiiframework.com/license/ * @license http://www.yiiframework.com/license/
*/ */
namespace yii\renderers; namespace yii\smarty;
use Yii; use Yii;
use Smarty; use Smarty;
use yii\base\View; use yii\base\View;
use yii\base\ViewRenderer;
use yii\helpers\Html; use yii\helpers\Html;
use yii\base\ViewRenderer as BaseViewRenderer;
/** /**
* SmartyViewRenderer allows you to use Smarty templates in views. * SmartyViewRenderer allows you to use Smarty templates in views.
@@ -21,7 +21,7 @@ use yii\helpers\Html;
* @author Alexander Makarov <sam@rmcreative.ru> * @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0 * @since 2.0
*/ */
class SmartyViewRenderer extends ViewRenderer class ViewRenderer extends BaseViewRenderer
{ {
/** /**
* @var string the directory or path alias pointing to where Smarty cache will be stored. * @var string the directory or path alias pointing to where Smarty cache will be stored.

View File

@@ -0,0 +1,27 @@
{
"name": "yiisoft/yii2-twig",
"description": "The Twig integration for the Yii framework",
"keywords": ["yii", "twig", "renderer"],
"type": "library",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"authors": [
{
"name": "Alenxader Makarov",
"email": "sam@rmcreative.ru"
}
],
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-0": { "yii\\twig": "" }
}
}

View File

@@ -11,7 +11,7 @@ namespace yii\renderers;
use Yii; use Yii;
use yii\base\View; use yii\base\View;
use yii\base\ViewRenderer; use yii\base\ViewRenderer as BaseViewRenderer;
use yii\helpers\Html; use yii\helpers\Html;
/** /**
@@ -20,7 +20,7 @@ use yii\helpers\Html;
* @author Alexander Makarov <sam@rmcreative.ru> * @author Alexander Makarov <sam@rmcreative.ru>
* @since 2.0 * @since 2.0
*/ */
class TwigViewRenderer extends ViewRenderer class ViewRenderer extends BaseViewRenderer
{ {
/** /**
* @var string the directory or path alias pointing to where Twig cache will be stored. * @var string the directory or path alias pointing to where Twig cache will be stored.