Code Duplication    Length = 9-11 lines in 2 locations

src/Controller/DeleteController.php 1 location

@@ 31-39 (lines=9) @@
28
     * @param ObjectManager            $manager
29
     * @param EventDispatcherInterface $evm
30
     */
31
    public function __construct(
32
        ObjectRepository $repository,
33
        ObjectManager $manager,
34
        EventDispatcherInterface $evm = null
35
    ) {
36
        $this->repository = $repository;
37
        $this->manager    = $manager;
38
        $this->evm        = $evm ?: new EventDispatcher();
39
    }
40
41
    /**
42
     * Removes the entity by given identifiers

src/Controller/UpdateController.php 1 location

@@ 35-45 (lines=11) @@
32
     * @param ObjectManager            $manager
33
     * @param EventDispatcherInterface $evm
34
     */
35
    public function __construct(
36
        ObjectRepository $repository,
37
        EntityProcessorInterface $processor,
38
        ObjectManager $manager,
39
        EventDispatcherInterface $evm = null
40
    ) {
41
        $this->manager    = $manager;
42
        $this->repository = $repository;
43
        $this->processor  = $processor;
44
        $this->evm        = $evm ?: new EventDispatcher();
45
    }
46
47
    /**
48
     * @param mixed $identifier