src/Controller.php
public function use_hook_listener( HookListenerInterface $listener ) {

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

				$registry->register_listener( $listener );
			}
		);

		return $this;
	}
public function use_hook_listener( HookListenerInterface $listener ) {

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

				$registry->register_listener( $listener );
			}
		);

		return $this;
	}
public function use_hook_listener ( HookListenerInterface $ listener ) { add_action ( HookListenersRegistry :: ACTION_REGISTER , function ( HookListenersRegistry $ registry ) use ( $ listener ) { $ registry -> register_listener ( $ listener ) ; } ) ; return $ this ; }
Tell Wonolog to use given hook listener.

@param HookListenerInterface $listener

@return Controller
Tell Wonolog to use given hook listener .