Skip to content

Commit

Permalink
Merge pull request #229 from alexdmccabe/fix-logger-type-declaration
Browse files Browse the repository at this point in the history
Use LoggerInterface in all services.
  • Loading branch information
lesstif authored Feb 7, 2019
2 parents d5d263c + 950609b commit eed6125
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/Auth/AuthService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace JiraRestApi\Auth;

use JiraRestApi\Configuration\ConfigurationInterface;
use Monolog\Logger;
use Psr\Log\LoggerInterface;

class AuthService extends \JiraRestApi\JiraClient
{
Expand Down Expand Up @@ -73,14 +73,14 @@ public function getSessionCookieValue()
/**
* AuthService constructor.
*
* @param ConfigurationInterface|null $configuration
* @param Logger|null $logger
* @param string $path
* @param ConfigurationInterface|null $configuration
* @param \Psr\Log\LoggerInterface|null $logger
* @param string $path
*
* @throws \Exception
* @throws \JiraRestApi\JiraException
*/
public function __construct(ConfigurationInterface $configuration = null, Logger $logger = null, $path = './')
public function __construct(ConfigurationInterface $configuration = null, LoggerInterface $logger = null, $path = './')
{
parent::__construct($configuration, $logger, $path);
$this->setAPIUri($this->auth_api_uri);
Expand Down
3 changes: 2 additions & 1 deletion src/Board/BoardService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

use JiraRestApi\Configuration\ConfigurationInterface;
use JiraRestApi\Issue\Issue;
use Psr\Log\LoggerInterface;

class BoardService extends \JiraRestApi\JiraClient
{
private $uri = '/board';

public function __construct(ConfigurationInterface $configuration = null, Logger $logger = null, $path = './')
public function __construct(ConfigurationInterface $configuration = null, LoggerInterface $logger = null, $path = './')
{
parent::__construct($configuration, $logger, $path);
$this->setAPIUri('/rest/agile/1.0');
Expand Down
4 changes: 2 additions & 2 deletions src/Sprint/SprintService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
use JiraRestApi\Configuration\ConfigurationInterface;
use JiraRestApi\JiraClient;
use JiraRestApi\JiraException;
use Monolog\Logger;
use Psr\Log\LoggerInterface;

class SprintService extends JiraClient
{
//https://jira01.devtools.intel.com/rest/agile/1.0/board?projectKeyOrId=34012
private $uri = '/sprint';

public function __construct(ConfigurationInterface $configuration = null, Logger $logger = null, $path = './')
public function __construct(ConfigurationInterface $configuration = null, LoggerInterface $logger = null, $path = './')
{
parent::__construct($configuration, $logger, $path);
$this->setAPIUri('/rest/agile/1.0');
Expand Down

0 comments on commit eed6125

Please sign in to comment.