Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
Fixed files permissions
  • Loading branch information
Show file tree
Hide file tree
Showing 27 changed files with 31 additions and 127 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.4-dev",
"dev-develop": "2.5-dev"
"dev-master": "2.1-dev",
"dev-develop": "2.2-dev"
}
},
"autoload-dev": {
Expand Down
4 changes: 0 additions & 4 deletions src/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json;
Expand All @@ -16,9 +15,6 @@

/**
* Decode JSON encoded string to PHP variable constructs
*
* @category Zend
* @package Zend_Json
*/
class Decoder
{
Expand Down
4 changes: 0 additions & 4 deletions src/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json;
Expand All @@ -18,9 +17,6 @@

/**
* Encode PHP constructs to JSON
*
* @category Zend
* @package Zend_Json
*/
class Encoder
{
Expand Down
6 changes: 0 additions & 6 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
* @subpackage Exception
*/
class BadMethodCallException extends \BadMethodCallException implements
ExceptionInterface
{}
5 changes: 0 additions & 5 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
*/
interface ExceptionInterface
{}
5 changes: 0 additions & 5 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
*/
class InvalidArgumentException extends \InvalidArgumentException implements
ExceptionInterface
{}
5 changes: 0 additions & 5 deletions src/Exception/RecursionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
*/
class RecursionException extends RuntimeException
{}
5 changes: 0 additions & 5 deletions src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
*/
class RuntimeException extends \RuntimeException implements ExceptionInterface
{}
5 changes: 0 additions & 5 deletions src/Expr.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json;
Expand All @@ -31,10 +30,6 @@
* // it will returns json encoded string:
* // {"integer":9,"string":"test string","function":function() {window.alert("javascript function encoded by Zend_Json")}}
* </code>
*
* @category Zend
* @package Zend_Json
* @subpackage Expr
*/
class Expr
{
Expand Down
6 changes: 1 addition & 5 deletions src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json;
Expand All @@ -16,9 +15,6 @@

/**
* Class for encoding to and decoding from JSON.
*
* @category Zend
* @package Zend_Json
*/
class Json
{
Expand Down Expand Up @@ -310,7 +306,7 @@ protected static function _processXml($simpleXmlElementObject, $ignoreXmlAttribu
* @return mixed - JSON formatted string on success
* @throws \Zend\Json\Exception\RuntimeException if the input not a XML formatted string
*/
public static function fromXml ($xmlStringContents, $ignoreXmlAttributes=true)
public static function fromXml($xmlStringContents, $ignoreXmlAttributes = true)
{
// Load the XML formatted string into a Simple XML Element object.
$simpleXmlElementObject = simplexml_load_string($xmlStringContents);
Expand Down
5 changes: 0 additions & 5 deletions src/Server/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server;
Expand All @@ -15,10 +14,6 @@

/**
* Zend_Json_Server_Cache: cache Zend_Json_Server server definition and SMD
*
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class Cache extends ServerCache
{
Expand Down
6 changes: 0 additions & 6 deletions src/Server/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server;

use Zend\Http\Client as HttpClient;
use Zend\Server\Client as ServerClient;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class Client implements ServerClient
{
/**
Expand Down
5 changes: 0 additions & 5 deletions src/Server/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server;

/**
* @category Zend
* @package Zend_Json
*/
class Error
{
const ERROR_PARSE = -32768;
Expand Down
5 changes: 0 additions & 5 deletions src/Server/Exception/ErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server\Exception;
Expand All @@ -14,10 +13,6 @@

/**
* Thrown by Zend\Json\Server\Client when an JSON-RPC fault response is returned.
*
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class ErrorException extends Exception\BadMethodCallException implements
ExceptionInterface
Expand Down
6 changes: 0 additions & 6 deletions src/Server/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server\Exception;

use Zend\Json\Exception\ExceptionInterface as Exception;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
interface ExceptionInterface extends Exception
{}
5 changes: 0 additions & 5 deletions src/Server/Exception/HttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server\Exception;

/**
* Thrown by Zend_Json_Server_Client when an HTTP error occurs during an
* JSON-RPC method call.
*
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class HttpException extends RuntimeException
{}
6 changes: 0 additions & 6 deletions src/Server/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server\Exception;

use Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class InvalidArgumentException extends Exception\InvalidArgumentException implements
ExceptionInterface
{}
6 changes: 0 additions & 6 deletions src/Server/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server\Exception;

use Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class RuntimeException extends Exception\RuntimeException implements
ExceptionInterface
{}
4 changes: 0 additions & 4 deletions src/Server/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server;
Expand All @@ -14,9 +13,6 @@

/**
* @todo Revised method regex to allow NS; however, should SMD be revised to strip PHP NS instead when attaching functions?
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class Request
{
Expand Down
5 changes: 0 additions & 5 deletions src/Server/Request/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server\Request;

use Zend\Json\Server\Request as JsonRequest;

/**
* @category Zend
* @package Zend_Json
*/
class Http extends JsonRequest
{
/**
Expand Down
10 changes: 2 additions & 8 deletions src/Server/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Json
*/

namespace Zend\Json\Server;

use Zend\Json\Json;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
*/
class Response
{
/**
Expand Down Expand Up @@ -118,10 +112,10 @@ public function getResult()
/**
* Set result error
*
* @param Error $error
* @param mixed $error
* @return Response
*/
public function setError(Error $error)
public function setError(Error $error = null)
{
$this->error = $error;
return $this;
Expand Down
Loading

0 comments on commit 9275250

Please sign in to comment.