Permalink
Browse files

Move classes inside Http\Response package

  • Loading branch information...
1 parent c837e20 commit 18d1c719467caf0afe7bb47a5aaccb5bcec6cb78 @cdujeu cdujeu committed May 12, 2016
@@ -23,7 +23,7 @@
defined('AJXP_EXEC') or die('Access not allowed');
-use Pydio\Core\Http\XMLSerializableResponseChunk;
+use Pydio\Core\Http\Response\XMLSerializableResponseChunk;
class LoggingResult implements XMLSerializableResponseChunk
{
@@ -21,8 +21,8 @@
namespace Pydio\Core\Http\Message;
use Pydio\Core\Controller\XMLWriter;
-use Pydio\Core\Http\JSONSerializableResponseChunk;
-use Pydio\Core\Http\XMLSerializableResponseChunk;
+use Pydio\Core\Http\Response\JSONSerializableResponseChunk;
+use Pydio\Core\Http\Response\XMLSerializableResponseChunk;
defined('AJXP_EXEC') or die('Access not allowed');
@@ -22,7 +22,7 @@
use \Psr\Http\Message\ServerRequestInterface;
use \Psr\Http\Message\ResponseInterface;
-use Pydio\Core\Http\SerializableResponseStream;
+use Pydio\Core\Http\Response\SerializableResponseStream;
use Pydio\Core\Http\Server;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\Utils;
@@ -18,7 +18,7 @@
*
* The latest code can be found at <http://pyd.io/>.
*/
-namespace Pydio\Core\Http;
+namespace Pydio\Core\Http\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
@@ -18,7 +18,9 @@
*
* The latest code can be found at <http://pyd.io/>.
*/
-namespace Pydio\Core\Http;
+namespace Pydio\Core\Http\Response;
+
+use Pydio\Core\Http\Response\SerializableResponseChunk;
defined('AJXP_EXEC') or die('Access not allowed');
@@ -18,7 +18,7 @@
*
* The latest code can be found at <http://pyd.io/>.
*/
-namespace Pydio\Core\Http;
+namespace Pydio\Core\Http\Response;
defined('AJXP_EXEC') or die('Access not allowed');
@@ -18,11 +18,15 @@
*
* The latest code can be found at <http://pyd.io/>.
*/
-namespace Pydio\Core\Http;
+namespace Pydio\Core\Http\Response;
use Psr\Http\Message\StreamInterface;
use Pydio\Core\Controller\XMLWriter;
+use Pydio\Core\Http\Response\JSONSerializableResponseChunk;
+use Pydio\Core\Http\Response\SerializableResponseChunk;
+use Pydio\Core\Http\Response\XMLDocSerializableResponseChunk;
+use Pydio\Core\Http\Response\XMLSerializableResponseChunk;
defined('AJXP_EXEC') or die('Access not allowed');
@@ -18,7 +18,9 @@
*
* The latest code can be found at <http://pyd.io/>.
*/
-namespace Pydio\Core\Http;
+namespace Pydio\Core\Http\Response;
+
+use Pydio\Core\Http\Response\XMLSerializableResponseChunk;
defined('AJXP_EXEC') or die('Access not allowed');
@@ -18,7 +18,9 @@
*
* The latest code can be found at <http://pyd.io/>.
*/
-namespace Pydio\Core\Http;
+namespace Pydio\Core\Http\Response;
+
+use Pydio\Core\Http\Response\SerializableResponseChunk;
defined('AJXP_EXEC') or die('Access not allowed');
@@ -39,8 +39,8 @@
use Pydio\Access\Core\Model\Repository;
use Pydio\Access\Core\Model\UserSelection;
use Pydio\Auth\Core\AJXP_Safe;
-use Pydio\Core\Http\AsyncResponseStream;
-use Pydio\Core\Http\SerializableResponseStream;
+use Pydio\Core\Http\Response\AsyncResponseStream;
+use Pydio\Core\Http\Response\SerializableResponseStream;
use Pydio\Core\Http\Message\UserMessage;
use Pydio\Core\Services\AuthService;
use Pydio\Core\Services\ConfService;
@@ -119,7 +119,7 @@ function tryToLogUser(\Psr\Http\Message\ServerRequestInterface &$request, \Psr\H
AuthService::refreshRememberCookie($loggedUser);
}
- $stream = new \Pydio\Core\Http\SerializableResponseStream();
+ $stream = new \Pydio\Core\Http\Response\SerializableResponseStream();
$stream->addChunk(new \Pydio\Core\Http\Message\LoggingResult($loggingResult, $rememberLogin, $rememberPass, $secureToken));
$response = $response->withBody($stream);
return true;
@@ -21,8 +21,8 @@
namespace Pydio\Access\Core\Model;
use Pydio\Core\Controller\XMLWriter;
-use Pydio\Core\Http\JSONSerializableResponseChunk;
-use Pydio\Core\Http\XMLSerializableResponseChunk;
+use Pydio\Core\Http\Response\JSONSerializableResponseChunk;
+use Pydio\Core\Http\Response\XMLSerializableResponseChunk;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Utils\Utils;
@@ -23,8 +23,8 @@
defined('AJXP_EXEC') or die('Access not allowed');
use Pydio\Core\Controller\XMLWriter;
-use Pydio\Core\Http\JSONSerializableResponseChunk;
-use Pydio\Core\Http\XMLDocSerializableResponseChunk;
+use Pydio\Core\Http\Response\JSONSerializableResponseChunk;
+use Pydio\Core\Http\Response\XMLDocSerializableResponseChunk;
class NodesList implements XMLDocSerializableResponseChunk, JSONSerializableResponseChunk
{

0 comments on commit 18d1c71

Please sign in to comment.