Skip to content

Commit

Permalink
Merge pull request #2 from PhiSYS/feature/rebrand
Browse files Browse the repository at this point in the history
Rebranded because dosfarma is abandoned
  • Loading branch information
PhiSYS authored Apr 28, 2021
2 parents 2bf4bea + e79e730 commit d8a7fae
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DosFarma Exceptions
# PhiSYS Exceptions
This library provides base exceptions for using in php projects like apis.

## Api Domain
Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"name": "dosfarma/exceptions",
"name": "phisys/exceptions",
"description": "Support for api exceptions integration.",
"type": "library",
"authors": [
{
"name": "Sergio Hernández Martínez",
"email": "sergio.hernandez@dosfarma.com"
"name": "Sergio Hernández Martínez"
},
{
"name": "José Ramón Flores Munuera"
},
{
"name": "David Strencsev Gómez"
}
],
"license": "MIT",
Expand All @@ -15,17 +20,17 @@
},
"require-dev": {
"phpunit/phpunit": "^9.4",
"dosfarma/coding-standard": "dev-master",
"phisys/coding-standard": "dev-master",
"dg/bypass-finals": "^1.2"
},
"autoload": {
"psr-4": {
"DosFarma\\Exceptions\\": "src/"
"PhiSYS\\Exceptions\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"DosFarma\\Exceptions\\Tests\\": "tests/"
"PhiSYS\\Exceptions\\Tests\\": "tests/"
}
}
}
5 changes: 2 additions & 3 deletions docker/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

FROM php:7.4-cli-alpine3.11
FROM php:8.0-cli-alpine

RUN apk update && \
apk add --no-cache \
Expand All @@ -11,7 +10,7 @@ RUN apk update && \
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer

RUN apk add --no-cache --virtual .phpize_deps $PHPIZE_DEPS && \
pecl install xdebug-2.9.6 && \
pecl install xdebug-3.0.2 && \
docker-php-ext-enable xdebug && \
rm -rf /usr/share/php7 && \
rm -rf /tmp/pear && \
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<ruleset name="Project rules">
<file>src</file>
<exclude-pattern>src/Kernel.php</exclude-pattern>
<rule ref="vendor/dosfarma/coding-standard/src/ruleset.xml" />
<rule ref="vendor/phisys/coding-standard/src/ruleset.xml" />
</ruleset>
4 changes: 2 additions & 2 deletions src/Api/Domain/AlreadyExistsException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Api\Domain;
namespace PhiSYS\Exceptions\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Resource;

abstract class AlreadyExistsException extends ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Domain/ApiException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Api\Domain;
namespace PhiSYS\Exceptions\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Resource;

abstract class ApiException extends \DomainException implements \JsonSerializable
{
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Domain/BusinessLogicException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Api\Domain;
namespace PhiSYS\Exceptions\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Resource;

abstract class BusinessLogicException extends ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Domain/DoesNotExistsException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Api\Domain;
namespace PhiSYS\Exceptions\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Resource;

abstract class DoesNotExistsException extends ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Api/Domain/ReferenceNotYetAvailableException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Api\Domain;
namespace PhiSYS\Exceptions\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Resource;

abstract class ReferenceNotYetAvailableException extends ApiException
{
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Resource.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Api;
namespace PhiSYS\Exceptions\Api;

interface Resource
{
Expand Down
6 changes: 3 additions & 3 deletions tests/Api/Domain/AlreadyExistsExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Tests\Api\Domain;
namespace PhiSYS\Exceptions\Tests\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use DosFarma\Exceptions\Api\Domain\AlreadyExistsException;
use PhiSYS\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Domain\AlreadyExistsException;
use PHPUnit\Framework\TestCase;

final class AlreadyExistsExceptionTest extends TestCase
Expand Down
6 changes: 3 additions & 3 deletions tests/Api/Domain/ApiExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Tests\Api\Domain;
namespace PhiSYS\Exceptions\Tests\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use DosFarma\Exceptions\Api\Domain\ApiException;
use PhiSYS\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Domain\ApiException;
use PHPUnit\Framework\TestCase;

final class ApiExceptionTest extends TestCase
Expand Down
6 changes: 3 additions & 3 deletions tests/Api/Domain/BusinessLogicExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Tests\Api\Domain;
namespace PhiSYS\Exceptions\Tests\Api\Domain;

use DosFarma\Exceptions\Api\Domain\BusinessLogicException;
use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Domain\BusinessLogicException;
use PhiSYS\Exceptions\Api\Resource;
use PHPUnit\Framework\TestCase;

final class BusinessLogicExceptionTest extends TestCase
Expand Down
6 changes: 3 additions & 3 deletions tests/Api/Domain/DoesNotExistsExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Tests\Api\Domain;
namespace PhiSYS\Exceptions\Tests\Api\Domain;

use DosFarma\Exceptions\Api\Resource;
use DosFarma\Exceptions\Api\Domain\DoesNotExistsException;
use PhiSYS\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Domain\DoesNotExistsException;
use PHPUnit\Framework\TestCase;

final class DoesNotExistsExceptionTest extends TestCase
Expand Down
8 changes: 4 additions & 4 deletions tests/Api/Domain/ReferenceNotYetAvailableExceptionTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
declare(strict_types=1);

namespace DosFarma\Exceptions\Tests\Api\Domain;
namespace PhiSYS\Exceptions\Tests\Api\Domain;

use DosFarma\Exceptions\Api\Domain\Reference;
use DosFarma\Exceptions\Api\Domain\ReferenceNotYetAvailableException;
use DosFarma\Exceptions\Api\Resource;
use PhiSYS\Exceptions\Api\Domain\Reference;
use PhiSYS\Exceptions\Api\Domain\ReferenceNotYetAvailableException;
use PhiSYS\Exceptions\Api\Resource;
use PHPUnit\Framework\TestCase;

final class ReferenceNotYetAvailableExceptionTest extends TestCase
Expand Down

0 comments on commit d8a7fae

Please sign in to comment.