mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 14:57:23 +08:00
Added "formatter" app component.
This commit is contained in:
@@ -278,6 +278,15 @@ class Application extends Module
|
||||
return $this->getComponent('cache');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the formatter component.
|
||||
* @return \yii\base\Formatter the formatter application component.
|
||||
*/
|
||||
public function getFormatter()
|
||||
{
|
||||
return $this->getComponent('formatter');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the request component.
|
||||
* @return \yii\web\Request|\yii\console\Request the request component
|
||||
@@ -333,6 +342,9 @@ class Application extends Module
|
||||
'errorHandler' => array(
|
||||
'class' => 'yii\base\ErrorHandler',
|
||||
),
|
||||
'formatter' => array(
|
||||
'class' => 'yii\base\Formatter',
|
||||
),
|
||||
'i18n' => array(
|
||||
'class' => 'yii\i18n\I18N',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user