Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit 9916ab5

Browse files
committed
Renames helpers to aware templates, closes #1
1 parent a506f77 commit 9916ab5

4 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ class MyFactory implements SomeFactory
4747
```
4848

4949

50-
### Factory awares and helpers
50+
### Factory awares and templates
5151

5252
For each factory there is a helper interface and trait to ease injecting them into other objects (such as HTTP clients).
5353

5454
An example:
5555

5656
``` php
5757
use Http\Message\SomeFactoryAware;
58-
use Http\Message\SomeFactoryHelper;
58+
use Http\Message\SomeFactoryAwareTemplate;
5959

6060
class HttpClient implements SomeFactoryAware
6161
{
62-
use SomeFactoryHelper;
62+
use SomeFactoryAwareTemplate;
6363
}
6464

6565
$client = new HttpClient();

src/MessageFactoryHelper.php renamed to src/MessageFactoryAwareTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Márk Sági-Kazár <[email protected]>
1616
*/
17-
interface MessageFactoryHelper
17+
trait MessageFactoryAwareTemplate
1818
{
1919
/**
2020
* @var MessageFactory

src/StreamFactoryHelper.php renamed to src/StreamFactoryAwareTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Márk Sági-Kazár <[email protected]>
1616
*/
17-
interface StreamFactoryHelper
17+
trait StreamFactoryAwareTemplate
1818
{
1919
/**
2020
* @var StreamFactory

src/UriFactoryHelper.php renamed to src/UriFactoryAwareTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Márk Sági-Kazár <[email protected]>
1616
*/
17-
interface UriFactoryHelper
17+
trait UriFactoryAwareTemplate
1818
{
1919
/**
2020
* @var UriFactory

0 commit comments

Comments
 (0)