Class yii\twig\ViewRendererStaticClassProxy
| Inheritance | yii\twig\ViewRendererStaticClassProxy |
|---|---|
| Source Code | https://github.com/yiisoft/yii2-twig/blob/master/ViewRendererStaticClassProxy.php |
Class-proxy for static classes Needed because you can't pass static class to Twig other way
Public Methods
Method Details
| public mixed __call ( string $method, array $arguments ) | ||
| $method | string | |
| $arguments | array | |
public function __call($method, $arguments)
{
return call_user_func_array([$this->_staticClassName, $method], $arguments);
}
| public mixed __construct ( string $staticClassName ) | ||
| $staticClassName | string | |
public function __construct($staticClassName)
{
$this->_staticClassName = $staticClassName;
}