Skip to content

Commit 8b5aff6

Browse files
committed
[StimulusBundle] Check controllers source files for laziness
1 parent 01839ab commit 8b5aff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StimulusBundle/src/AssetMapper/ControllersMapGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function loadCustomControllers(): array
7777
$name = str_replace(['_', '/', '\\'], ['-', '--', '--'], $name);
7878

7979
$asset = $this->assetMapper->getAssetFromSourcePath($file->getRealPath());
80-
$content = $asset->content ?: file_get_contents($asset->sourcePath);
80+
$content = file_get_contents($asset->sourcePath);
8181
$isLazy = preg_match('/\/\*\s*stimulusFetch:\s*\'lazy\'\s*\*\//i', $content);
8282

8383
$controllersMap[$name] = new MappedControllerAsset($asset, $isLazy);

0 commit comments

Comments
 (0)