You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Laravel/ApiPlatformProvider.php
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,15 @@ public function register(): void
261
261
$refl = new \ReflectionClass(Error::class);
262
262
$paths[] = \dirname($refl->getFileName());
263
263
264
+
$logger = $app->make(LoggerInterface::class);
265
+
266
+
foreach ($pathsas$i => $path) {
267
+
if (!file_exists($path)) {
268
+
$logger->warning(\sprintf('We skipped reading resources in "%s" as the path does not exist. Please check the configuration at "api-platform.resources".', $path));
0 commit comments