mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding missing docblocks
This commit is contained in:
parent
d17a471451
commit
cfaa1ee37c
1 changed files with 16 additions and 1 deletions
|
@ -40,6 +40,11 @@ App::uses('CakeEventListener', 'Event');
|
|||
*/
|
||||
class Dispatcher implements CakeEventListener {
|
||||
|
||||
/**
|
||||
* Event manager, used to handle dispatcher filters
|
||||
*
|
||||
* @var CakeEventMaanger
|
||||
**/
|
||||
protected $_eventManager;
|
||||
|
||||
/**
|
||||
|
@ -53,6 +58,12 @@ class Dispatcher implements CakeEventListener {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the CakeEventManager instance or creates one if none was
|
||||
* creted. Attaches the default listeners and filters
|
||||
*
|
||||
* @return CakeEventmanger
|
||||
**/
|
||||
public function getEventManager() {
|
||||
if (!$this->_eventManager) {
|
||||
$this->_eventManager = new CakeEventManager();
|
||||
|
@ -61,7 +72,11 @@ class Dispatcher implements CakeEventListener {
|
|||
return $this->_eventManager;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the list of events this object listents to.
|
||||
*
|
||||
* @return array
|
||||
**/
|
||||
public function implementedEvents() {
|
||||
return array(
|
||||
'Dispatcher.before' => array(
|
||||
|
|
Loading…
Reference in a new issue