]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3292 from nclsHart/remove-getdoctrine
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Fri, 28 Jul 2017 05:36:27 +0000 (07:36 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2017 05:36:27 +0000 (07:36 +0200)
Remove unused method getDoctrine in several commands

src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php
src/Wallabag/CoreBundle/Command/ExportCommand.php
src/Wallabag/CoreBundle/Command/ShowUserCommand.php

index d964439d4c87d69d81970d0c536ef5177594dce5..b4aa4e470359cae82597b3173776876dee241aa7 100644 (file)
@@ -111,9 +111,4 @@ class CleanDuplicatesCommand extends ContainerAwareCommand
     {
         return $this->getContainer()->get('wallabag_user.user_repository')->findOneByUserName($username);
     }
-
-    private function getDoctrine()
-    {
-        return $this->getContainer()->get('doctrine');
-    }
 }
index c2e4be05c9a87aac64a8cb63b42e9d3ac16b2e15..291926e4e00807aed327412f37e32767300f9e66 100644 (file)
@@ -69,9 +69,4 @@ class ExportCommand extends ContainerAwareCommand
 
         return 0;
     }
-
-    private function getDoctrine()
-    {
-        return $this->getContainer()->get('doctrine');
-    }
 }
index eef04988fb80206d67bdf8c8a242299e188001b0..4511c235496c4710e00bc62bc07143b9ecab9d30 100644 (file)
@@ -69,9 +69,4 @@ class ShowUserCommand extends ContainerAwareCommand
     {
         return $this->getContainer()->get('wallabag_user.user_repository')->findOneByUserName($username);
     }
-
-    private function getDoctrine()
-    {
-        return $this->getContainer()->get('doctrine');
-    }
 }