Completed
Push — master ( 3f0917...ad69cb )
by Henry
07:39
created

ControllerAbstract::_messengerFactory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Redaxscript\Admin\Controller;
3
4
use Redaxscript\Admin;
5
use Redaxscript\Controller\ControllerAbstract as BaseControllerAbstract;
6
7
/**
8
 * abstract class to create a admin controller class
9
 *
10
 * @since 4.0.0
11
 *
12
 * @package Redaxscript
13
 * @category Controller
14
 * @author Henry Ruhs
15
 */
16
17
abstract class ControllerAbstract extends BaseControllerAbstract
18
{
19
	/**
20
	 * messenger factory
21
	 *
22
	 * @since 4.0.0
23
	 *
24
	 * @return Admin\Messenger
25
	 */
26
27
	protected function _messengerFactory()
28
	{
29
		return new Admin\Messenger($this->_registry);
30
	}
31
}
32