-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0.0' into main
- Loading branch information
Showing
8 changed files
with
152 additions
and
22 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -1337,6 +1337,7 @@ | |
'phpdoc_to_comment' => [ | ||
'ignored_tags' => [ | ||
'noinspection', | ||
'psalm-suppress', | ||
], | ||
], | ||
|
||
|
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 |
---|---|---|
|
@@ -4,17 +4,18 @@ | |
"type": "symfony-bundle", | ||
"require": { | ||
"php": ">= 8.0", | ||
"roach-php/core": "^0.3.0", | ||
"symfony/config": "^5.3 | ^6.0", | ||
"symfony/dependency-injection": "^5.3 | ^6.0", | ||
"symfony/http-kernel": "^5.3 | ^6.0", | ||
"symfony/console": "^5.3 | ^6.0" | ||
"roach-php/core": "^1.0", | ||
"symfony/config": "^6.0", | ||
"symfony/dependency-injection": "^6.0", | ||
"symfony/http-kernel": "^6.0", | ||
"symfony/console": "^6.0", | ||
"symfony/serializer": "^6.0" | ||
}, | ||
"require-dev": { | ||
"roave/security-advisories": "dev-latest", | ||
"symfony/phpunit-bridge": "^5.3 | ^6.0", | ||
"symfony/var-dumper": "^5.3 | ^6.0", | ||
"symfony/framework-bundle": "^5.3 | ^6.0", | ||
"symfony/phpunit-bridge": "^6.0", | ||
"symfony/var-dumper": "^6.0", | ||
"symfony/framework-bundle": "^6.0", | ||
"symfony/maker-bundle": "^1.37", | ||
"vimeo/psalm": "^4.21", | ||
"psalm/plugin-symfony": "^3.1", | ||
|
@@ -37,5 +38,8 @@ | |
"name": "Ne-Lexa", | ||
"email": "[email protected]" | ||
} | ||
] | ||
], | ||
"suggest": { | ||
"spatie/browsershot": "Required to execute Javascript in spiders" | ||
} | ||
} |
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,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* Copyright (c) 2022 Ne-Lexa <[email protected]> | ||
* | ||
* For the full copyright and license information, please view | ||
* the LICENSE file that was distributed with this source code. | ||
* | ||
* @see https://github.com/Ne-Lexa/roach-php-bundle | ||
*/ | ||
|
||
namespace Nelexa\RoachPhpBundle\Normalizer; | ||
|
||
use RoachPHP\ItemPipeline\ItemInterface; | ||
use Symfony\Component\Serializer\Normalizer\CacheableSupportsMethodInterface; | ||
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | ||
|
||
class ItemNormalizer implements NormalizerInterface, CacheableSupportsMethodInterface | ||
{ | ||
public function hasCacheableSupportsMethod(): bool | ||
{ | ||
return true; | ||
} | ||
|
||
public function supportsNormalization(mixed $data, ?string $format = null): bool | ||
{ | ||
return $data instanceof ItemInterface; | ||
} | ||
|
||
public function normalize(mixed $object, ?string $format = null, array $context = []): array | ||
{ | ||
/** @psalm-suppress all */ | ||
return $object->all(); | ||
} | ||
} |
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