Skip to content

Rewind stream when possible #29

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 4 commits into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Move exception to Common namespace
  • Loading branch information
theofidry committed Mar 28, 2017
commit 123a821b2cb62867b1ec4ca91a7d9ebc8e939fa0
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
},
"autoload": {
"psr-4": {
"Http\\Client\\Common\\Plugin\\": "src/"
"Http\\Client\\Common\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"spec\\Http\\Client\\Common\\Plugin\\": "spec/"
"spec\\Http\\Client\\Common\\": "spec/"
}
},
"scripts": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/CachePlugin.php → src/Plugin/CachePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace Http\Client\Common\Plugin;

use Http\Client\Common\Plugin;
use Http\Client\Common\RewindStreamException;
use Http\Message\StreamFactory;
use Http\Promise\FulfilledPromise;
use Psr\Cache\CacheItemInterface;
use Psr\Cache\CacheItemPoolInterface;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use RewindStreamException;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;

Expand Down
2 changes: 1 addition & 1 deletion src/RewindStreamException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Http\Client\Common\Plugin;
namespace Http\Client\Common;

use Http\Client\Exception;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namespace to src/ is Http\Client\Common\Plugin

But lets put this exception in Http\Client\Common\Plugin\Exception


Expand Down