Add method to get all registered extensions
This commit is contained in:
parent
7979ef5376
commit
a839219711
|
|
@ -62,6 +62,14 @@ final class JsonApi implements RequestHandlerInterface
|
|||
$this->extensions[$extension->uri()] = $extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all registered extensions.
|
||||
*/
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return $this->extensions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define a new resource type.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue