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

Commit

Permalink
Useless injections removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Morselli committed Dec 16, 2015
1 parent c7cacde commit 84b27b8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
14 changes: 0 additions & 14 deletions src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@
namespace Jose;

use Base64Url\Base64Url;
use Jose\Algorithm\JWAManagerInterface;
use Jose\Behaviour\HasCheckerManager;
use Jose\Behaviour\HasCompressionManager;
use Jose\Behaviour\HasJWAManager;
use Jose\Behaviour\HasKeyChecker;
use Jose\Behaviour\HasPayloadConverter;
use Jose\Checker\CheckerManagerInterface;
use Jose\Compression\CompressionManagerInterface;
use Jose\Object\JWE;
use Jose\Object\JWS;
use Jose\Payload\PayloadConverterManagerInterface;
Expand All @@ -31,29 +26,20 @@
*/
final class Loader implements LoaderInterface
{
use HasKeyChecker;
use HasJWAManager;
use HasCheckerManager;
use HasPayloadConverter;
use HasCompressionManager;

/**
* Loader constructor.
*
* @param \Jose\Algorithm\JWAManagerInterface $jwa_manager
* @param \Jose\Payload\PayloadConverterManagerInterface $payload_converter_manager
* @param \Jose\Compression\CompressionManagerInterface $compression_manager
* @param \Jose\Checker\CheckerManagerInterface $checker_manager
*/
public function __construct(
JWAManagerInterface $jwa_manager,
PayloadConverterManagerInterface $payload_converter_manager,
CompressionManagerInterface $compression_manager,
CheckerManagerInterface $checker_manager)
{
$this->setJWAManager($jwa_manager);
$this->setPayloadConverter($payload_converter_manager);
$this->setCompressionManager($compression_manager);
$this->setCheckerManager($checker_manager);
}

Expand Down
12 changes: 0 additions & 12 deletions src/Verifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@
use Jose\Algorithm\JWAManagerInterface;
use Jose\Algorithm\Signature\SignatureInterface;
use Jose\Behaviour\HasCheckerManager;
use Jose\Behaviour\HasCompressionManager;
use Jose\Behaviour\HasJWAManager;
use Jose\Behaviour\HasKeyChecker;
use Jose\Behaviour\HasPayloadConverter;
use Jose\Checker\CheckerManagerInterface;
use Jose\Compression\CompressionManagerInterface;
use Jose\Object\JWKSetInterface;
use Jose\Object\JWSInterface;
use Jose\Payload\PayloadConverterManagerInterface;

/**
*/
Expand All @@ -31,26 +27,18 @@ final class Verifier implements VerifierInterface
use HasKeyChecker;
use HasJWAManager;
use HasCheckerManager;
use HasPayloadConverter;
use HasCompressionManager;

/**
* Loader constructor.
*
* @param \Jose\Algorithm\JWAManagerInterface $jwa_manager
* @param \Jose\Payload\PayloadConverterManagerInterface $payload_converter_manager
* @param \Jose\Compression\CompressionManagerInterface $compression_manager
* @param \Jose\Checker\CheckerManagerInterface $checker_manager
*/
public function __construct(
JWAManagerInterface $jwa_manager,
PayloadConverterManagerInterface $payload_converter_manager,
CompressionManagerInterface $compression_manager,
CheckerManagerInterface $checker_manager)
{
$this->setJWAManager($jwa_manager);
$this->setPayloadConverter($payload_converter_manager);
$this->setCompressionManager($compression_manager);
$this->setCheckerManager($checker_manager);
}

Expand Down
4 changes: 0 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
protected function getLoader()
{
$loader = new Loader(
$this->getJWAManager(),
$this->getPayloadConverterManager(),
$this->getCompressionManager(),
$this->getCheckerManager()
);

Expand Down Expand Up @@ -113,8 +111,6 @@ protected function getVerifier()
{
$loader = new Verifier(
$this->getJWAManager(),
$this->getPayloadConverterManager(),
$this->getCompressionManager(),
$this->getCheckerManager()
);

Expand Down

0 comments on commit 84b27b8

Please sign in to comment.