Skip to content

Commit

Permalink
unify syntax in readmes (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrparolek authored Mar 12, 2021
1 parent 6840b52 commit 1383c72
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ composer require contributte/psr6-caching

Register extension

```yaml
```neon
extensions:
psr6: Contributte\Psr6\DI\Psr6CachingExtension
psr6: Contributte\Psr6\DI\Psr6CachingExtension
```

## Usage
Expand All @@ -32,17 +32,17 @@ use Contributte\Psr6\ICachePoolFactory;
class MyClass
{

/** @var ICachePoolFactory */
private $cachePoolFactory;
public function __construct(ICachePoolFactory $cachePoolFactory) {
$this->cachePoolFactory = $cachePoolFactory;
}
private function doSomething(): void
{
$cachePool = $this->cachePoolFactory->create('namespace');
}
/** @var ICachePoolFactory */
private $cachePoolFactory;

public function __construct(ICachePoolFactory $cachePoolFactory) {
$this->cachePoolFactory = $cachePoolFactory;
}

private function doSomething(): void
{
$cachePool = $this->cachePoolFactory->create('namespace');
}

}
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

To install the latest version of `contributte/psr6-caching` use [Composer](https://getcomposer.com).

```
```bash
composer require contributte/psr6-caching
```
## Documentation
Expand Down

0 comments on commit 1383c72

Please sign in to comment.