Skip to content

Commit

Permalink
Remove unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moln committed Feb 8, 2022
1 parent 56dc6cd commit b626154
Show file tree
Hide file tree
Showing 45 changed files with 32 additions and 3,411 deletions.
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@
}
},
"require": {
"symfony/serializer": "^5.2"
"php": ">=7.4",
"symfony/serializer": "^5.2|^6.0"
},
"extra": {
"laminas": {
"config-provider": "Zfegg\\ApiSerializerExt\\ConfigProvider"
}
},
"require-dev": {
"phpunit/phpunit": "^9.5"
}
}
}
26 changes: 11 additions & 15 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="App\\Tests">
<directory>./test</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="App\\Tests">
<directory>./test</directory>
</testsuite>
</testsuites>
</phpunit>
5 changes: 1 addition & 4 deletions src/Basic/ArrayNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ final class ArrayNormalizer implements NormalizerInterface, SerializerAwareInter
AbstractNormalizer::IGNORED_ATTRIBUTES => [],
];

/**
* @var NameConverterInterface|null
*/
private $nameConverter;
private ?NameConverterInterface $nameConverter;

public function __construct(NameConverterInterface $nameConverter = null, array $defaultContext = [])
{
Expand Down
16 changes: 0 additions & 16 deletions src/Basic/CollectionNormalizer.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
<?php

/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Zfegg\ApiSerializerExt\Basic;

use Zfegg\ApiSerializerExt\Serializer\AbstractCollectionNormalizer;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;

/**
* Normalizes collections in the JSON API format.
*
* @author Kevin Dunglas <dunglas@gmail.com>
* @author Hamza Amrouche <hamza@les-tilleuls.coop>
* @author Baptiste Meyer <baptiste.meyer@gmail.com>
*/
final class CollectionNormalizer extends AbstractCollectionNormalizer
{
public const FORMAT = 'json';
Expand Down
42 changes: 0 additions & 42 deletions src/Basic/ItemNormalizer.php

This file was deleted.

82 changes: 0 additions & 82 deletions src/Hal/EntrypointNormalizer.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Hal/ItemNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
namespace Zfegg\ApiSerializerExt\Hal;

use Zfegg\ApiSerializerExt\Serializer\AbstractItemNormalizer;
use Zfegg\ApiSerializerExt\Serializer\CacheKeyTrait;
use Zfegg\ApiSerializerExt\Serializer\ContextTrait;
use Zfegg\ApiSerializerExt\Util\ClassInfoTrait;
use Symfony\Component\Serializer\Exception\LogicException;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
Expand Down
3 changes: 1 addition & 2 deletions src/Hal/ObjectNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace Zfegg\ApiSerializerExt\Hal;

use Zfegg\ApiSerializerExt\Api\IriConverterInterface;
use Symfony\Component\Serializer\Exception\LogicException;
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
Expand All @@ -30,7 +29,7 @@ final class ObjectNormalizer implements NormalizerInterface, DenormalizerInterfa
private $decorated;
private $iriConverter;

public function __construct(NormalizerInterface $decorated, IriConverterInterface $iriConverter)
public function __construct(NormalizerInterface $decorated, $iriConverter)
{
$this->decorated = $decorated;
$this->iriConverter = $iriConverter;
Expand Down
156 changes: 0 additions & 156 deletions src/Hydra/CollectionFiltersNormalizer.php

This file was deleted.

Loading

0 comments on commit b626154

Please sign in to comment.