Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DeGraciaMathieu authored Jun 25, 2024
1 parent 1648869 commit 8cb283d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ interface UserRepository
//
}
```
```php
<?php

namespace App\Infrastructure\Repositories;

use App\Domain\Ports\Repositories\UserRepository;

class UserRepositoryAdapter implements UserRepository
{
//
}
```

From now on, a singleton has been automatically created between the port and the adapter !

```php
$userRepository = app(UserRepository::class);

dd($userRepository); // App\Infrastructure\Repositories\UserRepositoryAdapter
```

0 comments on commit 8cb283d

Please sign in to comment.