Skip to content

Removes custom message interfaces, removes interface suffix #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@

namespace Http\Adapter\Message;

use Psr\Http\Message\RequestInterface;

/**
* @author GeLo <[email protected]>
*/
interface InternalRequestInterface extends RequestInterface
interface InternalRequest extends RequestInterface, ParameterableMessage
{
/**
* Returns some data by name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@

use Http\Adapter\HttpAdapterException;
use Psr\Http\Message\UriInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;

/**
* @author GeLo <[email protected]>
*/
interface MessageFactoryInterface
interface MessageFactory
{
/**
* Returns the base URI
Expand Down Expand Up @@ -58,7 +60,7 @@ public function setBaseUri($baseUri);
public function createRequest(
$method,
$uri,
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
$protocolVersion = '1.1',
array $headers = [],
$body = null,
array $parameters = []
Expand All @@ -75,12 +77,12 @@ public function createRequest(
* @param array $files
* @param array $parameters
*
* @return InternalRequestInterface
* @return InternalRequest
*/
public function createInternalRequest(
$method,
$uri,
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
$protocolVersion = '1.1',
array $headers = [],
$data = [],
array $files = [],
Expand All @@ -100,7 +102,7 @@ public function createInternalRequest(
*/
public function createResponse(
$statusCode = 200,
$protocolVersion = RequestInterface::PROTOCOL_VERSION_1_1,
$protocolVersion = '1.1',
array $headers = [],
$body = null,
array $parameters = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,13 @@

namespace Http\Adapter\Message;

use Psr\Http\Message\MessageInterface as PsrMessageInterface;

/**
* Allows to define parameters for a message
*
* @author GeLo <[email protected]>
*/
interface MessageInterface extends PsrMessageInterface
interface ParameterableMessage
{
/** @const string */
const PROTOCOL_VERSION_1_0 = '1.0';

/** @const string */
const PROTOCOL_VERSION_1_1 = '1.1';

/**
* Returns a parameter by name
*
Expand Down
44 changes: 0 additions & 44 deletions src/Message/RequestInterface.php

This file was deleted.

21 changes: 0 additions & 21 deletions src/Message/ResponseInterface.php

This file was deleted.