Skip to content

Commit

Permalink
Merge pull request #52 from andrey-mokhov/docs
Browse files Browse the repository at this point in the history
fix example in documentation
  • Loading branch information
andrey-mokhov committed Dec 29, 2023
2 parents d0bb60b + e585a80 commit 0c7a4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ru/spiral/type-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ interface TypeRegistryInterface
{
public function has(string $type): bool;

public function get(string $type): Webonyx\Type;
public function get(string $type): Webonyx\Type&Webonyx\NamedType;

public function register(Webonyx\Type $type, string ...$aliases): void;
public function register(Webonyx\Type&Webonyx\NamedType $type, string ...$aliases): void;

public function getTypes(): iterable;
}
Expand Down Expand Up @@ -44,7 +44,7 @@ interface TypeRegistryInterface
</tr>
<tr>
<td valign="top"><code>get</code></td>
<td valign="top"><code>Webonyx\Type</code></td>
<td valign="top"><code>Webonyx\Type & Webonyx\NamedType</code></td>
<td valign="top">
Для запрошенного имени возвращает определение GraphQL типа. Если имя GraphQL типа отсутствует
в реестре - будет выброшено исключение.
Expand Down

0 comments on commit 0c7a4b1

Please sign in to comment.