src/Controller.php
public function use_default_hook_listeners() {

		static $done = FALSE;
		if ( $done ) {
			return $this;
		}

		$done = TRUE;

		add_action(
			HookListenersRegistry::ACTION_REGISTER,
			function ( HookListenersRegistry $registry ) {

				$registry
					->register_listener( new HookListener\DbErrorListener() )
					->register_listener( new HookListener\FailedLoginListener() )
					->register_listener( new HookListener\HttpApiListener() )
					->register_listener( new HookListener\MailerListener() )
					->register_listener( new HookListener\QueryErrorsListener() )
					->register_listener( new HookListener\CronDebugListener() )
					->register_listener( new HookListener\WpDieHandlerListener() );
			}
		);

		return $this;
	}
public function use_default_hook_listeners() {

		static $done = FALSE;
		if ( $done ) {
			return $this;
		}

		$done = TRUE;

		add_action(
			HookListenersRegistry::ACTION_REGISTER,
			function ( HookListenersRegistry $registry ) {

				$registry
					->register_listener( new HookListener\DbErrorListener() )
					->register_listener( new HookListener\FailedLoginListener() )
					->register_listener( new HookListener\HttpApiListener() )
					->register_listener( new HookListener\MailerListener() )
					->register_listener( new HookListener\QueryErrorsListener() )
					->register_listener( new HookListener\CronDebugListener() )
					->register_listener( new HookListener\WpDieHandlerListener() );
			}
		);

		return $this;
	}
public function use_default_hook_listeners ( ) { static $ done = FALSE ; if ( $ done ) { return $ this ; } $ done = TRUE ; add_action ( HookListenersRegistry :: ACTION_REGISTER , function ( HookListenersRegistry $ registry ) { $ registry -> register_listener ( new HookListener \ DbErrorListener ( ) ) -> register_listener ( new HookListener \ FailedLoginListener ( ) ) -> register_listener ( new HookListener \ HttpApiListener ( ) ) -> register_listener ( new HookListener \ MailerListener ( ) ) -> register_listener ( new HookListener \ QueryErrorsListener ( ) ) -> register_listener ( new HookListener \ CronDebugListener ( ) ) -> register_listener ( new HookListener \ WpDieHandlerListener ( ) ) ; } ) ; return $ this ; }
Tell Wonolog to use all default hook listeners.

@return Controller
Tell Wonolog to use all default hook listeners .