Skip to content

Commit

Permalink
Fix api-platform routes import
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemN committed Dec 21, 2021
1 parent 0fada28 commit ab99b4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Tests/Functional/Resources/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ fos_rest:
type: annotation


api_platform:
resource: .
prefix: /api
type: api_platform

# Controllers
doc_area:
path: /docs/{area}
Expand Down
2 changes: 0 additions & 2 deletions Tests/Functional/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ public function registerBundles(): iterable
*/
protected function configureRoutes($routes)
{
$this->import($routes, '', '/api', 'api_platform');

$this->import($routes, __DIR__.'/Resources/routes.yaml', '/', 'yaml');

if (class_exists(SerializedName::class)) {
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function assertNotHasProperty($property, OA\AbstractAnnotation $annotatio
}

/**
* BC symfony < 5.3
* BC symfony < 5.3.
*/
protected static function getContainer(): ContainerInterface
{
Expand Down

0 comments on commit ab99b4b

Please sign in to comment.