kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

[Insight] Missing use statement should be avoided #24

Closed kayue closed 10 years ago

kayue commented 10 years ago

in Twig/Extension/WordpressExtension.php, line 172

The class User resolves to Kayue\WordpressBundle\Twig\Extension\User in this class namespace. This class doesn't seem to exist in the project class map. Did you forget to add a use statement? Or did you forget to prefix this class with a \?

    public function findAllMetasByPost(Post $post)
    {
        return $this->postMetaManager->findAllMetasByPost($post);
    }

    public function findAllMetasByUser(User $user)
    {
        return $this->userMetaManager->findAllMetasByUser($user);
    }

    public function findMetasBy(array $criteria)

Posted from SensioLabsInsight