Skip to content

Commit

Permalink
Mark ApiExceptionConverters as internal, remove interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Aug 7, 2019
1 parent c8dfdcd commit d8b07ea
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 16 deletions.
8 changes: 7 additions & 1 deletion src/Firebase/Exception/AuthApiExceptionConverter.php
Expand Up @@ -22,11 +22,17 @@
use Kreait\Firebase\Http\ErrorResponseParser;
use Throwable;

final class AuthApiExceptionConverter implements ExceptionConverter
/**
* @internal
*/
class AuthApiExceptionConverter
{
/** @var ErrorResponseParser */
private $responseParser;

/**
* @internal
*/
public function __construct()
{
$this->responseParser = new ErrorResponseParser();
Expand Down
8 changes: 7 additions & 1 deletion src/Firebase/Exception/DatabaseApiExceptionConverter.php
Expand Up @@ -12,11 +12,17 @@
use Kreait\Firebase\Http\ErrorResponseParser;
use Throwable;

final class DatabaseApiExceptionConverter implements ExceptionConverter
/**
* @internal
*/
class DatabaseApiExceptionConverter
{
/** @var ErrorResponseParser */
private $responseParser;

/**
* @internal
*/
public function __construct()
{
$this->responseParser = new ErrorResponseParser();
Expand Down
12 changes: 0 additions & 12 deletions src/Firebase/Exception/ExceptionConverter.php

This file was deleted.

8 changes: 7 additions & 1 deletion src/Firebase/Exception/MessagingApiExceptionConverter.php
Expand Up @@ -16,11 +16,17 @@
use Kreait\Firebase\Http\ErrorResponseParser;
use Throwable;

class MessagingApiExceptionConverter implements ExceptionConverter
/**
* @internal
*/
class MessagingApiExceptionConverter
{
/** @var ErrorResponseParser */
private $responseParser;

/**
* @internal
*/
public function __construct()
{
$this->responseParser = new ErrorResponseParser();
Expand Down
8 changes: 7 additions & 1 deletion src/Firebase/Exception/RemoteConfigApiExceptionConverter.php
Expand Up @@ -11,11 +11,17 @@
use Kreait\Firebase\Http\ErrorResponseParser;
use Throwable;

class RemoteConfigApiExceptionConverter implements ExceptionConverter
/**
* @internal
*/
class RemoteConfigApiExceptionConverter
{
/** @var ErrorResponseParser */
private $responseParser;

/**
* @internal
*/
public function __construct()
{
$this->responseParser = new ErrorResponseParser();
Expand Down

0 comments on commit d8b07ea

Please sign in to comment.