变更
This commit is contained in:
@@ -34,6 +34,19 @@ class Handler implements RequestHandlerInterface
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $interface
|
||||
* @return bool
|
||||
*/
|
||||
public function implement(string $interface): bool
|
||||
{
|
||||
if (!$this->isClosure()) {
|
||||
return $this->handler[0] instanceof $interface;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user