src/PHPDish/Bundle/UserBundle/Twig/UserExtension.php
public function getFunctions()
    {
        return [
            new \Twig_SimpleFunction('get_user', [$this->userManager, 'findUserById']),
            new \Twig_SimpleFunction('get_user_by_username', [$this->userManager, 'findUserByUsername']),
            new \Twig_SimpleFunction('get_user_by_email', [$this->userManager, 'findUserByEmail']),
            new \Twig_SimpleFunction('get_user_by_username_or_email', [$this->userManager, 'findUserByUsernameOrEmail']),
            new \Twig_SimpleFunction('get_users', [$this, 'getUsers']),
            new \Twig_SimpleFunction('get_users_pager', [$this->userManager, 'findUsersPager']),
            new \Twig_SimpleFunction('get_category_authors', [$this, 'getCategoryAuthors']),
        ];
    }
public function getFunctions()
    {
        return [
            new \Twig_SimpleFunction('get_user', [$this->userManager, 'findUserById']),
            new \Twig_SimpleFunction('get_user_by_username', [$this->userManager, 'findUserByUsername']),
            new \Twig_SimpleFunction('get_user_by_email', [$this->userManager, 'findUserByEmail']),
            new \Twig_SimpleFunction('get_user_by_username_or_email', [$this->userManager, 'findUserByUsernameOrEmail']),
            new \Twig_SimpleFunction('get_users', [$this, 'getUsers']),
            new \Twig_SimpleFunction('get_users_pager', [$this->userManager, 'findUsersPager']),
            new \Twig_SimpleFunction('get_category_authors', [$this, 'getCategoryAuthors']),
        ];
    }
{@inheritdoc}