Fix api-platform routes import

This commit is contained in:
Guilhem Niot 2021-12-21 13:52:16 +01:00
parent 0fada289f5
commit ab99b4bcb9
3 changed files with 6 additions and 3 deletions

View File

@ -24,6 +24,11 @@ fos_rest:
type: annotation type: annotation
api_platform:
resource: .
prefix: /api
type: api_platform
# Controllers # Controllers
doc_area: doc_area:
path: /docs/{area} path: /docs/{area}

View File

@ -81,8 +81,6 @@ class TestKernel extends Kernel
*/ */
protected function configureRoutes($routes) protected function configureRoutes($routes)
{ {
$this->import($routes, '', '/api', 'api_platform');
$this->import($routes, __DIR__.'/Resources/routes.yaml', '/', 'yaml'); $this->import($routes, __DIR__.'/Resources/routes.yaml', '/', 'yaml');
if (class_exists(SerializedName::class)) { if (class_exists(SerializedName::class)) {

View File

@ -171,7 +171,7 @@ class WebTestCase extends BaseWebTestCase
} }
/** /**
* BC symfony < 5.3 * BC symfony < 5.3.
*/ */
protected static function getContainer(): ContainerInterface protected static function getContainer(): ContainerInterface
{ {