public function userPanelAction()
    {
        if (!$this->getDispatcher()->hasListeners(ThemeEvents::THEME_SIDEBAR_USER)) {
            return new Response();
        }
        $userEvent = $this->getDispatcher()->dispatch(ThemeEvents::THEME_SIDEBAR_USER, new ShowUserEvent());

        return $this->render(
                    'AvanzuAdminThemeBundle:Sidebar:user-panel.html.twig',
                        [
                            'user' => $userEvent->getUser(),
                        ]
        );
    }
public function userPanelAction()
    {
        if (!$this->getDispatcher()->hasListeners(ThemeEvents::THEME_SIDEBAR_USER)) {
            return new Response();
        }
        $userEvent = $this->getDispatcher()->dispatch(ThemeEvents::THEME_SIDEBAR_USER, new ShowUserEvent());

        return $this->render(
                    'AvanzuAdminThemeBundle:Sidebar:user-panel.html.twig',
                        [
                            'user' => $userEvent->getUser(),
                        ]
        );
    }
public function userPanelAction ( ) { if ( ! $ this -> getDispatcher ( ) -> hasListeners ( ThemeEvents :: THEME_SIDEBAR_USER ) ) { return new Response ( ) ; } $ userEvent = $ this -> getDispatcher ( ) -> dispatch ( ThemeEvents :: THEME_SIDEBAR_USER , new ShowUserEvent ( ) ) ; return $ this -> render ( 'AvanzuAdminThemeBundle:Sidebar:user-panel.html.twig' , [ 'user' => $ userEvent -> getUser ( ) , ] ) ; }
Block used in macro avanzu_sidebar_user

@return \Symfony\Component\HttpFoundation\Response|unknown
Block used in macro avanzu_sidebar_user