Skip to content

Commit

Permalink
Using ICanBoogie\Prototype v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Feb 1, 2015
1 parent 56bf8e4 commit dfc609e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"require": {
"php": ">=5.4.0",
"icanboogie/prototype": "~2.0.3",
"icanboogie/event": "~1.2.3",
"icanboogie/prototype": "~2.1.0",
"icanboogie/event": "~1.3.0",
"icanboogie/datetime": "~1.1.1"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions lib/DispatcherNotDefined.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace ICanBoogie\HTTP;

use ICanBoogie\GetterTrait;
use ICanBoogie\Accessor\AccessorTrait;

/**
* Exception thrown in attempt to obtain a dispatcher that is not defined.
Expand All @@ -20,7 +20,7 @@
*/
class DispatcherNotDefined extends \LogicException implements Exception
{
use GetterTrait;
use AccessorTrait;

private $dispatcher_id;

Expand Down
4 changes: 2 additions & 2 deletions lib/ForceRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace ICanBoogie\HTTP;

use ICanBoogie\GetterTrait;
use ICanBoogie\Accessor\AccessorTrait;

/**
* Exception thrown to force the redirect of the response.
Expand All @@ -20,7 +20,7 @@
*/
class ForceRedirect extends HTTPError
{
use GetterTrait;
use AccessorTrait;

private $location;

Expand Down
10 changes: 2 additions & 8 deletions lib/Headers/CacheControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

namespace ICanBoogie\HTTP\Headers;

use ICanBoogie\GetterTrait;
use ICanBoogie\Object\HasMethod;
use ICanBoogie\Object\SetterTrait;
use ICanBoogie\Accessor\AccessorTrait;

/**
* Representation of the `Cache-Control` header field.
Expand All @@ -40,11 +38,7 @@
*/
class CacheControl
{
use GetterTrait, SetterTrait, HasMethod
{
HasMethod::has_method insteadof GetterTrait;
HasMethod::has_method insteadof SetterTrait;
}
use AccessorTrait;

static protected $cacheable_values = [

Expand Down
4 changes: 2 additions & 2 deletions lib/MethodNotSupported.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace ICanBoogie\HTTP;

use ICanBoogie\GetterTrait;
use ICanBoogie\Accessor\AccessorTrait;

/**
* Exception thrown when the HTTP method is not supported.
Expand All @@ -20,7 +20,7 @@
*/
class MethodNotSupported extends HTTPError
{
use GetterTrait;
use AccessorTrait;

private $method;

Expand Down
4 changes: 2 additions & 2 deletions lib/StatusCodeNotValid.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace ICanBoogie\HTTP;

use ICanBoogie\GetterTrait;
use ICanBoogie\Accessor\AccessorTrait;

/**
* Exception thrown when the HTTP status code is not valid.
Expand All @@ -20,7 +20,7 @@
*/
class StatusCodeNotValid extends \InvalidArgumentException implements Exception
{
use GetterTrait;
use AccessorTrait;

private $status_code;

Expand Down

0 comments on commit dfc609e

Please sign in to comment.