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 92
array
get_phpbb_extensions()
Get the list of enabled phpBB extensions
Used in EVENT node
at line 102
config
get_phpbb_config()
Get phpBB config
at line 112
string
get_phpbb_root_path()
Get the phpBB root path
at line 122
filesystem
get_filesystem()
Get the filesystem object
at line 132
string
get_web_root_path()
Get the web root path
at line 142
path_helper
get_path_helper()
Get the phpbb path helper object
at line 152
assets_bag
get_assets_bag()
Gets the assets bag
at line 162
array
getNamespaceLookUpOrder()
Get the namespace look up order
at line 173
Environment
setNamespaceLookUpOrder(array $namespace)
Set the namespace look up order to load templates from
at line 183
render($name, array $context = [])
{@inheritdoc}
at line 191
display($name, array $context = [])
{@inheritdoc}
at line 266
Template
loadTemplate(string $name, int $index = null)
Loads a template by name.
at line 302
string
findTemplate(string $name)
Finds a template by name.