src/PHPDish/Bundle/CoreBundle/EventListener/PostListener.php
protected function handleUserPostCount(UserInterface $user)
    {
        $count = $this->postManager->getUserPostCount($user);
        $user->setPostCount($count);
        $this->userManager->saveUser($user);
    }
protected function handleUserPostCount(UserInterface $user)
    {
        $count = $this->postManager->getUserPostCount($user);
        $user->setPostCount($count);
        $this->userManager->saveUser($user);
    }
处理用户的文章数量
@param UserInterface $user