Skip to content

Commit ce2cf85

Browse files
committed
feat: add ApiResource resources directory for bundles
1 parent fdcd680 commit ce2cf85

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,11 @@ private function getBundlesResourcesPaths(ContainerBuilder $container, array $co
275275
$bundlesResourcesPaths = [];
276276

277277
foreach ($container->getParameter('kernel.bundles_metadata') as $bundle) {
278-
$paths = [];
279278
$dirname = $bundle['path'];
279+
$paths = [
280+
"$dirname/ApiResource",
281+
"$dirname/src/ApiResource",
282+
];
280283
foreach (['.yaml', '.yml', '.xml', ''] as $extension) {
281284
$paths[] = "$dirname/Resources/config/api_resources$extension";
282285
$paths[] = "$dirname/config/api_resources$extension";

0 commit comments

Comments
 (0)