Skip to content

Commit cec9097

Browse files
authored
Fix namespaces in readme
1 parent 2152283 commit cec9097

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.MD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ You can simply require the client as a dependency and use it in your class.
4545
This allows you to, for example, make a repository that uses the [DocumentClient](#documentclient):
4646

4747
``` php
48-
use Swis\JsonApi\Interfaces\DocumentClientInterface;
49-
use Swis\JsonApi\Interfaces\ItemDocumentInterface;
48+
use Swis\JsonApi\Client\Interfaces\DocumentClientInterface;
49+
use Swis\JsonApi\Client\Interfaces\ItemDocumentInterface;
5050

5151
class BlogRepository
5252
{
@@ -165,7 +165,7 @@ There are currently four relations available:
165165
Please see the following example about defining the relationships:
166166

167167
``` php
168-
use Swis\JsonApi\Items\JenssegersItem;
168+
use Swis\JsonApi\Client\Items\JenssegersItem;
169169

170170
class AuthorItem extends JenssegersItem
171171
{
@@ -209,7 +209,7 @@ This `TypeMapper` maps, as the name suggests, JSON API types to custom [item mod
209209
You can manually register items with the `\Swis\JsonApi\Client\TypeMapper` or use the supplied `\Swis\JsonApi\Client\Providers\TypeMapperServiceProvider`:
210210

211211
``` php
212-
use Swis\JsonApi\Providers\TypeMapperServiceProvider as BaseTypeMapperServiceProvider;
212+
use Swis\JsonApi\Client\Providers\TypeMapperServiceProvider as BaseTypeMapperServiceProvider;
213213

214214
class TypeMapperServiceProvider extends BaseTypeMapperServiceProvider
215215
{

0 commit comments

Comments
 (0)