use Twig\TwigFunction;
#[Package('core')]
class FeatureFlagExtension extends AbstractExtension
{ /**
* @return FeatureFlagCallTokenParser[]
*/
public function getTokenParsers() { return [ new FeatureFlagCallTokenParser(),
];
} /**
* @return TwigFunction[]
*/
public function getFunctions(): array
{ return [ new TwigFunction('feature',
$this->
feature(...
)),
new TwigFunction('getAllFeatures',
$this->
getAll(...
)),
];