src/PHPDish/Bundle/PostBundle/Controller/CategoryController.php
public function userCategoriesAction(UserInterface $user)
    {
        $categories = $this->getCategoryManager()->findUserCategories($user);

        return $this->render($this->configuration->getTemplate('Category:user_categories.html.twig'), [
            'categories' => $categories,
            'user' => $user,
        ]);
    }
public function userCategoriesAction(UserInterface $user)
    {
        $categories = $this->getCategoryManager()->findUserCategories($user);

        return $this->render($this->configuration->getTemplate('Category:user_categories.html.twig'), [
            'categories' => $categories,
            'user' => $user,
        ]);
    }
获取用户的专栏.

@param UserInterface $user

@return Response