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

Commit

Permalink
Merge branch 'stdlib-renamed-interfaces' of https://github.com/prolic…
Browse files Browse the repository at this point in the history
…/zf2 into feature/zen27-stdlib

Conflicts:
	library/Zend/Mvc/ApplicationInterface.php
	library/Zend/Mvc/Bootstrap.php
	library/Zend/Mvc/Controller/ActionController.php
	library/Zend/Mvc/Controller/RestfulController.php
	library/Zend/Mvc/MvcEvent.php
	library/Zend/Mvc/Router/Http/TreeRouteStack.php
	library/Zend/Mvc/View/DefaultRenderingStrategy.php
	library/Zend/Mvc/View/ExceptionStrategy.php
	library/Zend/Mvc/View/RouteNotFoundStrategy.php
	library/Zend/View/View.php
	library/Zend/View/ViewEvent.php
	tests/Zend/Mvc/Controller/TestAsset/UnlocatableEventfulController.php
  • Loading branch information
Show file tree
Hide file tree
Showing 22 changed files with 55 additions and 59 deletions.
7 changes: 0 additions & 7 deletions src/Dispatchable.php

This file was deleted.

10 changes: 10 additions & 0 deletions src/DispatchableInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
namespace Zend\Stdlib;

use Zend\Stdlib\ResponseInterface as Response,
Zend\Stdlib\RequestInterface as Request;

interface DispatchableInterface
{
public function dispatch(Request $request, Response $response = null);
}
7 changes: 0 additions & 7 deletions src/Exception.php

This file was deleted.

7 changes: 3 additions & 4 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

namespace Zend\Stdlib\Exception;

use Zend\Stdlib\Exception;

/**
* Bad method call exception
*
Expand All @@ -30,7 +28,8 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class BadMethodCallException extends \BadMethodCallException
implements Exception
class BadMethodCallException
extends \BadMethodCallException
implements ExceptionInterface
{
}
6 changes: 3 additions & 3 deletions src/Exception/DomainException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Zend\Stdlib\Exception;

use Zend\Stdlib\Exception;

class DomainException extends \DomainException implements Exception
class DomainException
extends \DomainException
implements ExceptionInterface
{
}
7 changes: 7 additions & 0 deletions src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Zend\Stdlib\Exception;

interface ExceptionInterface
{
}
8 changes: 3 additions & 5 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace Zend\Stdlib\Exception;

use Zend\Stdlib\Exception;

class InvalidArgumentException
extends \InvalidArgumentException
implements Exception
class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
{
}
8 changes: 2 additions & 6 deletions src/Exception/InvalidCallbackException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,16 @@

namespace Zend\Stdlib\Exception;

use Zend\Stdlib\Exception;

/**
* Invalid callback exception
*
* @uses Exception
* @uses Zend\Stdlib\Exception
* @category Zend
* @package Zend_Stdlib
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidCallbackException
extends DomainException
implements Exception
extends \DomainException
implements ExceptionInterface
{
}
6 changes: 3 additions & 3 deletions src/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

namespace Zend\Stdlib\Exception;

use Zend\Stdlib\Exception;

/**
* logic exception
*
Expand All @@ -30,6 +28,8 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class LogicException extends \LogicException implements Exception
class LogicException
extends \LogicException
implements ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Traversable;

class Message implements MessageDescription
class Message implements MessageInterface
{
/**
* @var array
Expand Down
2 changes: 1 addition & 1 deletion src/MessageDescription.php → src/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Zend\Stdlib;

interface MessageDescription
interface MessageInterface
{
public function setMetadata($spec, $value = null);
public function getMetadata($key = null);
Expand Down
2 changes: 1 addition & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Options implements ParameterObject
abstract class Options implements ParameterObjectInterface
{
/**
* @param array|Traversable|null $options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface ParameterObject
interface ParameterObjectInterface
{
/**
* @param string $key
Expand Down
2 changes: 1 addition & 1 deletion src/Parameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use ArrayObject;

class Parameters extends ArrayObject implements ParametersDescription
class Parameters extends ArrayObject implements ParametersInterface
{
/**
* Constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* class QueryParams extends ArrayObject implements Parameters {}
* and have 90% of the functionality
*/
interface ParametersDescription extends ArrayAccess, Countable, Serializable, Traversable
interface ParametersInterface extends ArrayAccess, Countable, Serializable, Traversable
{
public function __construct(array $values = null);

Expand Down
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Zend\Stdlib;

class Request extends Message implements RequestDescription
class Request extends Message implements RequestInterface
{
// generic request implementation
}
7 changes: 0 additions & 7 deletions src/RequestDescription.php

This file was deleted.

7 changes: 7 additions & 0 deletions src/RequestInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace Zend\Stdlib;

interface RequestInterface extends MessageInterface
{
}
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Zend\Stdlib;

class Response extends Message implements ResponseDescription
class Response extends Message implements ResponseInterface
{
// generic response implementation
}
8 changes: 0 additions & 8 deletions src/ResponseDescription.php

This file was deleted.

8 changes: 8 additions & 0 deletions src/ResponseInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Zend\Stdlib;

interface ResponseInterface extends MessageInterface
{

}
2 changes: 1 addition & 1 deletion test/ParametersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ParametersTest extends \PHPUnit_Framework_TestCase
public function testParametersConstructionAndClassStructure()
{
$parameters = new Parameters();
$this->assertInstanceOf('Zend\Stdlib\ParametersDescription', $parameters);
$this->assertInstanceOf('Zend\Stdlib\ParametersInterface', $parameters);
$this->assertInstanceOf('ArrayObject', $parameters);
$this->assertInstanceOf('ArrayAccess', $parameters);
$this->assertInstanceOf('Countable', $parameters);
Expand Down

0 comments on commit 7d2af87

Please sign in to comment.