Code Duplication    Length = 18-19 lines in 2 locations

core/domain/entities/routing/handlers/admin/WordPressPluginsPage.php 1 location

@@ 36-54 (lines=19) @@
33
    /**
34
     * @since $VID:$
35
     */
36
    protected function registerDependencies()
37
    {
38
        $this->dependency_map->registerDependencies(
39
            'EventEspresso\core\domain\services\assets\WordpressPluginsPageAssetManager',
40
            [
41
                'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
42
                'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
43
                'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
44
                'EventEspresso\core\domain\services\admin\ExitModal' => EE_Dependency_Map::load_from_cache,
45
            ]
46
        );
47
        $this->dependency_map->registerDependencies(
48
            'EventEspresso\core\domain\services\admin\ExitModal',
49
            ['EventEspresso\core\services\assets\Registry' => EE_Dependency_Map::load_from_cache]
50
        );
51
        $this->dependency_map->registerDependencies(
52
            'EventEspresso\core\domain\services\admin\PluginUpsells',
53
            ['EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache]
54
        );
55
    }
56
57

core/domain/entities/routing/handlers/shared/SessionRequests.php 1 location

@@ 34-51 (lines=18) @@
31
    /**
32
     * @since $VID:$
33
     */
34
    protected function registerDependencies()
35
    {
36
        $this->dependency_map->registerDependencies(
37
            'EE_Session',
38
            [
39
                'EventEspresso\core\services\cache\TransientCacheStorage'  => EE_Dependency_Map::load_from_cache,
40
                'EventEspresso\core\domain\values\session\SessionLifespan' => EE_Dependency_Map::load_from_cache,
41
                'EventEspresso\core\services\request\Request'              => EE_Dependency_Map::load_from_cache,
42
                'EventEspresso\core\services\session\SessionStartHandler'  => EE_Dependency_Map::load_from_cache,
43
                'EE_Encryption'                                            => EE_Dependency_Map::load_from_cache,
44
            ]
45
        );
46
        $this->dependency_map->registerDependencies(
47
            'EventEspresso\core\services\session\SessionStartHandler',
48
            ['EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache]
49
        );
50
    }
51
52
53
    /**
54
     * implements logic required to run during request