Plugin::getLogger() interface no longer depends on PluginLogger (#3160)

The Plugin contract now typehints the relied on AttachableLogger contract rather than the concrete PluginLogger implementation.
This commit is contained in:
Jack Noordhuis 2019-10-25 06:26:42 +11:00 committed by Dylan T
parent 46e005543f
commit c8cf329c94
2 changed files with 4 additions and 4 deletions

View File

@ -81,9 +81,9 @@ interface Plugin{
public function getName() : string; public function getName() : string;
/** /**
* @return PluginLogger * @return \AttachableLogger
*/ */
public function getLogger() : PluginLogger; public function getLogger() : \AttachableLogger;
/** /**
* @return PluginLoader * @return PluginLoader

View File

@ -163,9 +163,9 @@ abstract class PluginBase implements Plugin, CommandExecutor{
} }
/** /**
* @return PluginLogger * @return \AttachableLogger
*/ */
public function getLogger() : PluginLogger{ public function getLogger() : \AttachableLogger{
return $this->logger; return $this->logger;
} }