-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add RedisFactory for testing - Add RedisInMemory for testing - Add HttpRequestInterface for adapters - Add monolog CustomTagProcessor - Fix coding standards
- Loading branch information
Showing
19 changed files
with
390 additions
and
66 deletions.
There are no files selected for viewing
23 changes: 16 additions & 7 deletions
23
.docker/php7.3-dev/Dockerfile → .docker/php-dev/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
FROM php:7.3-cli | ||
FROM php:8.0-cli-alpine | ||
|
||
RUN apt-get update && apt-get install -y git unzip | ||
RUN apk update | ||
RUN apk add --no-cache bash | ||
RUN apk add --no-cache build-base | ||
RUN apk add --no-cache autoconf | ||
RUN apk add --no-cache automake | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
ENV COMPOSER_MEMORY_LIMIT -1 | ||
|
||
RUN mkdir /.composer_cache | ||
ENV COMPOSER_CACHE_DIR /.composer_cache | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
# php extensions | ||
# intl | ||
RUN apk add --no-cache icu-dev | ||
RUN docker-php-ext-install intl | ||
RUN docker-php-ext-enable intl | ||
|
||
# xdebug | ||
RUN pecl install xdebug | ||
RUN docker-php-ext-enable xdebug | ||
|
||
RUN mkdir /.composer_cache | ||
ENV COMPOSER_CACHE_DIR /.composer_cache | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ language: php | |
|
||
matrix: | ||
include: | ||
- php: 7.3 | ||
- php: 7.4 | ||
- php: 8.0 | ||
fast_finish: true | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->import(__DIR__ . '/vendor/symplify/easy-coding-standard/config/set/clean-code.php'); | ||
$containerConfigurator->import(__DIR__ . '/vendor/symplify/easy-coding-standard/config/set/symfony.php'); | ||
$containerConfigurator->import(__DIR__ . '/vendor/symplify/easy-coding-standard/config/set/php71.php'); | ||
$containerConfigurator->import(__DIR__ . '/vendor/symplify/easy-coding-standard/config/set/psr12.php'); | ||
$parameters = $containerConfigurator->parameters(); | ||
$parameters->set('skip', [ | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MicroModule\Base\Domain\Adapter; | ||
|
||
/** | ||
* Interface HttpRequestInterface. | ||
* | ||
* @category Domain\Adapter | ||
*/ | ||
interface HttpRequestInterface | ||
{ | ||
public const REQUEST_METHOD_GET = 'GET'; | ||
public const REQUEST_METHOD_POST = 'POST'; | ||
public const RESPONSE_STATUS_SUCCESS = 200; | ||
public const RESPONSE_STATUS_CREATED = 201; | ||
public const RESPONSE_HEADER_CONTENT_TYPE = 'content-type'; | ||
public const RESPONSE_HEADER_CONTENT_TYPE_JSON = 'application/json'; | ||
|
||
/** | ||
* Return request url. | ||
*/ | ||
public function getUrl(): string; | ||
|
||
/** | ||
* Return request headers. | ||
* | ||
* @return string[] | ||
*/ | ||
public function getHeaders(): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.