Skip to content

Commit

Permalink
Merge branch 'release/v1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Invis1ble committed Jun 3, 2024
2 parents 9ecaa48 + 83486e9 commit 90eca35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

RUN set -eux; \

Check failure on line 10 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Lint

DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check

Check failure on line 10 in Dockerfile

View workflow job for this annotation

GitHub Actions / Docker Lint

DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
pecl install xdebug-3.3.2 \
&& docker-php-ext-enable xdebug
if ! pecl list | grep -q xdebug; then \
pecl install xdebug-3.3.2 && docker-php-ext-enable xdebug; \
fi

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"version": "1.0.3",
"name": "invis1ble/symfony-serializer-extension",
"type": "library",
"description": "Additional useful (de)normalizers for symfony/serializer .",
Expand Down
16 changes: 5 additions & 11 deletions src/Normalizer/UriNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@

use Psr\Http\Message\UriFactoryInterface;
use Psr\Http\Message\UriInterface;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

class UriNormalizer extends AbstractNormalizer
class UriNormalizer implements NormalizerInterface, DenormalizerInterface
{
public function __construct(
protected readonly UriFactoryInterface $uriFactory,
?ClassMetadataFactoryInterface $classMetadataFactory = null,
?NameConverterInterface $nameConverter = null,
array $defaultContext = [],
) {
parent::__construct($classMetadataFactory, $nameConverter, $defaultContext);
public function __construct(protected readonly UriFactoryInterface $uriFactory)
{
}

public function normalize(
Expand Down

0 comments on commit 90eca35

Please sign in to comment.