mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-11 18:16:13 +03:00
Fix CS
This commit is contained in:
parent
383fb78360
commit
cf8635eb95
@ -11,9 +11,8 @@
|
|||||||
|
|
||||||
namespace Nelmio\ApiDocBundle\Describer;
|
namespace Nelmio\ApiDocBundle\Describer;
|
||||||
|
|
||||||
use ApiPlatform\Documentation\DocumentationInterface;
|
|
||||||
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer;
|
use ApiPlatform\Core\Swagger\Serializer\DocumentationNormalizer;
|
||||||
use ApiPlatform\OpenApi\Factory\OpenApiFactoryInterface;
|
use ApiPlatform\Documentation\DocumentationInterface;
|
||||||
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||||
|
|
||||||
final class ApiPlatformDescriber extends ExternalDocDescriber
|
final class ApiPlatformDescriber extends ExternalDocDescriber
|
||||||
|
@ -17,4 +17,4 @@ if (!class_exists(ApiProperty::class)) {
|
|||||||
class_alias(Dummy81::class, Dummy::class);
|
class_alias(Dummy81::class, Dummy::class);
|
||||||
} else {
|
} else {
|
||||||
class_alias(Dummy71::class, Dummy::class);
|
class_alias(Dummy71::class, Dummy::class);
|
||||||
}
|
}
|
||||||
|
@ -23,11 +23,11 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||||||
*/
|
*/
|
||||||
#[
|
#[
|
||||||
ApiResource(
|
ApiResource(
|
||||||
shortName: "Dummy",
|
shortName: 'Dummy',
|
||||||
operations: [
|
operations: [
|
||||||
new Get(name: "get"),
|
new Get(name: 'get'),
|
||||||
new Get(name: "custom2", uriTemplate: "/foo"),
|
new Get(name: 'custom2', uriTemplate: '/foo'),
|
||||||
new Post(name: "custom", uriTemplate: "/foo"),
|
new Post(name: 'custom', uriTemplate: '/foo'),
|
||||||
new GetCollection(),
|
new GetCollection(),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@ -44,7 +44,7 @@ class Dummy81
|
|||||||
*
|
*
|
||||||
* @Assert\NotBlank
|
* @Assert\NotBlank
|
||||||
*/
|
*/
|
||||||
#[ApiProperty(iris: ["http://schema.org/name"])]
|
#[ApiProperty(iris: ['http://schema.org/name'])]
|
||||||
private $name;
|
private $name;
|
||||||
|
|
||||||
public function getId(): int
|
public function getId(): int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user