Code Duplication    Length = 10-13 lines in 2 locations

event/listener.php 1 location

@@ 78-87 (lines=10) @@
75
	 * @param string                            $root_path
76
	 *
77
	 */
78
	public function __construct(session_helper_interface $session_helper, user $user, request_interface $request, driver_interface $db, config $config, $php_ext, $root_path)
79
	{
80
		$this->session_helper		= $session_helper;
81
		$this->user					= $user;
82
		$this->request				= $request;
83
		$this->config				= $config;
84
		$this->db					= $db;
85
		$this->php_ext				= $php_ext;
86
		$this->root_path			= $root_path;
87
	}
88
89
	/**
90
	 * Assign functions defined in this class to event listeners in the core

helper/session_helper.php 1 location

@@ 89-101 (lines=13) @@
86
	 * @param string                   $registration_table
87
	 * @param string                   $user_table
88
	 */
89
	public function __construct(driver_interface $db, config $config, user $user, service_collection $modules, template $template, helper $controller_helper, $registration_table, $user_table)
90
	{
91
		$this->db					= $db;
92
		$this->user					= $user;
93
		$this->config				= $config;
94
		$this->template 			= $template;
95
		$this->controller_helper 	= $controller_helper;
96
		$this->registration_table	= $registration_table;
97
		$this->user_table			= $user_table;
98
99
		$this->validateModules($modules);
100
101
	}
102
103
	/**
104
	 * Register the tagged modules if they are enabled.