mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/twig] Docs/typehinting for Twig extension
PHPBB3-11598
This commit is contained in:
parent
192c9d8f86
commit
576d8d7072
1 changed files with 13 additions and 1 deletions
|
@ -23,12 +23,24 @@ class phpbb_template_twig_extension extends Twig_Extension
|
|||
/** @var phpbb_user */
|
||||
protected $user;
|
||||
|
||||
public function __construct(phpbb_template_context $context, $user)
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param phpbb_template_context $context
|
||||
* @param phpbb_user $user
|
||||
* @return phpbb_template_twig_extension
|
||||
*/
|
||||
public function __construct(phpbb_template_context $context, phpbb_user $user)
|
||||
{
|
||||
$this->context = $context;
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of this extension
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return 'phpbb';
|
||||
|
|
Loading…
Add table
Reference in a new issue