Twig
extends Facade
in package
Table of Contents
Properties
- $container : Container
- $instance : mixed
Methods
- __callStatic() : mixed
- addExtension() : void
- addFunction() : void
- getInstance() : mixed
- get service instance
- load() : void
- render() : string
- setContainer() : void
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
$instance
protected
static mixed
$instance
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
addExtension()
public
static addExtension(AbstractExtension $extension) : void
拡張機能を追加
Parameters
- $extension : AbstractExtension
addFunction()
public
static addFunction(string $name, callable $function) : void
関数を追加
Parameters
- $name : string
- $function : callable
getInstance()
get service instance
public
static getInstance() : mixed
load()
public
static load(string $path, string $theme) : void
twigテンプレートをロード
Parameters
- $path : string
- $theme : string
render()
public
static render() : string
テンプレートをレンダリング
Return values
stringsetContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
getServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool