Skip to content

Commit 14e565c

Browse files
committed
Adds ConfigurableRequest instead of ImmutableConfigurable
1 parent 1d7effc commit 14e565c

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/Configurable.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
* Allows global configurations
1616
*
1717
* This interface does not allow modifying options
18-
* Check the specific mutable and immutable interfaces
1918
*
2019
* @author Márk Sági-Kazár [email protected]>
2120
*/

src/Configurable/ImmutableConfigurable.php renamed to src/Message/ConfigurableRequest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Http\Adapter\Configurable;
12+
namespace Http\Adapter\Message;
1313

14-
use Http\Adapter\Configurable;
14+
use Psr\Http\Message\RequestInterface;
15+
use Psr\Http\Configurable;
1516

1617
/**
17-
* Allows to modify configuration an immutable way
18+
* Allows to modify configuration in a request an immutable way
1819
*
1920
* @author Márk Sági-Kazár [email protected]>
2021
*/
21-
interface ImmutableConfigurable extends Configurable
22+
interface ConfigurableRequest extends RequestInterface, Configurable
2223
{
2324
/**
2425
* Sets an option

src/Message/InternalRequest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@
1111

1212
namespace Http\Adapter\Message;
1313

14-
use Http\Adapter\Configurable\ImmutableConfigurable;
15-
use Psr\Http\Message\RequestInterface;
16-
1714
/**
1815
* @author GeLo <[email protected]>
1916
*/
20-
interface InternalRequest extends RequestInterface, ParameterableMessage, ImmutableConfigurable
17+
interface InternalRequest extends ConfigurableRequest, ParameterableMessage
2118
{
2219
/**
2320
* Returns some data by name

0 commit comments

Comments
 (0)