partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit e176720c9c4fc673288610ffe41b619fa5fc35a1
parent 95438d5ee21e5c3a7be4f4512e175cddf79728fa
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat, 12 Sep 2015 18:46:27 +0200

Removed unnecessary data provider

Diffstat:
Msrc/PartKeepr/CategoryBundle/Action/GetRootNodeAction.php | 12++----------
Msrc/PartKeepr/CategoryBundle/Resources/config/actions.xml | 1-
2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/src/PartKeepr/CategoryBundle/Action/GetRootNodeAction.php b/src/PartKeepr/CategoryBundle/Action/GetRootNodeAction.php @@ -4,7 +4,6 @@ namespace PartKeepr\CategoryBundle\Action; use Dunglas\ApiBundle\Action\ActionUtilTrait; use Dunglas\ApiBundle\Api\ResourceInterface; use Dunglas\ApiBundle\Exception\RuntimeException; -use Dunglas\ApiBundle\Model\DataProviderInterface; use Gedmo\Tree\Entity\Repository\AbstractTreeRepository; use PartKeepr\CategoryBundle\Exception\RootNodeNotFoundException; use Symfony\Bridge\Doctrine\ManagerRegistry; @@ -18,18 +17,12 @@ class GetRootNodeAction use ActionUtilTrait; /** - * @var DataProviderInterface - */ - private $dataProvider; - - /** * @var ManagerRegistry */ private $manager; - public function __construct(DataProviderInterface $dataProvider, ManagerRegistry $manager) + public function __construct(ManagerRegistry $manager) { - $this->dataProvider = $dataProvider; $this->manager = $manager; } @@ -64,4 +57,4 @@ class GetRootNodeAction return $rootNode; } -}- \ No newline at end of file +} diff --git a/src/PartKeepr/CategoryBundle/Resources/config/actions.xml b/src/PartKeepr/CategoryBundle/Resources/config/actions.xml @@ -6,7 +6,6 @@ <services> <service id="partkeepr.category.get_root_node" class="PartKeepr\CategoryBundle\Action\GetRootNodeAction"> - <argument type="service" id="api.data_provider"/> <argument type="service" id="doctrine"/> </service> <service id="partkeepr.category.move" class="PartKeepr\CategoryBundle\Action\MoveAction">