environment
class environment extends Environment
Properties
protected config | $phpbb_config | ||
protected filesystem | $filesystem | ||
protected path_helper | $phpbb_path_helper | ||
protected ContainerInterface | $container | ||
protected manager | $extension_manager | ||
protected dispatcher_interface | $phpbb_dispatcher | ||
protected string | $phpbb_root_path | ||
protected string | $web_root_path | ||
protected array | $namespace_look_up_order | ||
protected assets_bag | $assets_bag |
Methods
Constructor
Get the list of enabled phpBB extensions
Get phpBB config
Get the phpBB root path
Get the filesystem object
Get the web root path
Get the phpbb path helper object
Gets the assets bag
Get the namespace look up order
Set the namespace look up order to load templates from
{@inheritdoc}
{@inheritdoc}
Loads a template by name.
Finds a template by name.
Details
at line 62
__construct(config $phpbb_config, filesystem $filesystem, path_helper $path_helper, string $cache_path, manager $extension_manager = null, LoaderInterface $loader = null, dispatcher_interface $phpbb_dispatcher = null, array $options = array())
Constructor
at line 93
array
get_phpbb_extensions()
Get the list of enabled phpBB extensions
Used in EVENT node
at line 103
config
get_phpbb_config()
Get phpBB config
at line 113
string
get_phpbb_root_path()
Get the phpBB root path
at line 123
filesystem
get_filesystem()
Get the filesystem object
at line 133
string
get_web_root_path()
Get the web root path
at line 143
path_helper
get_path_helper()
Get the phpbb path helper object
at line 153
assets_bag
get_assets_bag()
Gets the assets bag
at line 163
array
getNamespaceLookUpOrder()
Get the namespace look up order
at line 174
Environment
setNamespaceLookUpOrder(array $namespace)
Set the namespace look up order to load templates from
at line 184
render($name, array $context = [])
{@inheritdoc}
at line 192
display($name, array $context = [])
{@inheritdoc}
at line 267
Template
loadTemplate(string $name, int $index = null)
Loads a template by name.
at line 303
string
findTemplate(string $name)
Finds a template by name.