Fix deprecation notes for Module::registerHook()

This commit is contained in:
Eric Lippmann 2017-01-17 12:27:04 +01:00
parent 0e63434d90
commit 326574ba54
1 changed files with 5 additions and 6 deletions

View File

@ -1251,7 +1251,7 @@ class Module
* *
* @return $this * @return $this
* *
* @deprecated Deprecated in favor of {@link provideHook()}. Will be removed in version 2.2.0 * @deprecated Deprecated since 2.1.1. Use {@link provideHook()} instead
*/ */
protected function registerHook($name, $class, $key = null) protected function registerHook($name, $class, $key = null)
{ {
@ -1272,15 +1272,14 @@ class Module
* Provide a hook implementation * Provide a hook implementation
* *
* @param string $name Name of the hook for which to provide an implementation * @param string $name Name of the hook for which to provide an implementation
* @param string $implementation [optional] Fully qualified name of the class providing the hook implementation. * @param string $implementation Fully qualified name of the class providing the hook implementation.
* Defaults to the module's ProvidedHook namespace plus the hook's name for the * Defaults to the module's ProvidedHook namespace plus the hook's name for the
* class name. Web 2's namespace separator is \\ (double backslash) at the moment * class name
* @param string $key No-op arg for compatibility reasons. This argument is deprecated and will be * @param string $deprecated DEPRECATED - No-op arg for compatibility reasons
* removed in version 2.2.0
* *
* @return $this * @return $this
*/ */
protected function provideHook($name, $implementation = null, $key = null) protected function provideHook($name, $implementation = null, $deprecated = null)
{ {
if ($implementation === null) { if ($implementation === null) {
$implementation = $name; $implementation = $name;