Skip to content

Commit

Permalink
fix(state): Link now uses securityMessage from Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-averty committed Jul 2, 2024
1 parent 3773940 commit ae0e201
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Metadata/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function __construct(
description: $description,
required: $required,
security: $security,
securityMessage: $securityMessage,
extraProperties: $extraProperties
);
}
Expand Down
11 changes: 11 additions & 0 deletions tests/Fixtures/TestBundle/ApiResource/WithSecurityParameter.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?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 ApiPlatform\Tests\Fixtures\TestBundle\ApiResource;

use ApiPlatform\Metadata\GetCollection;
Expand Down

0 comments on commit ae0e201

Please sign in to comment.