Skip to content

Commit 511da51

Browse files
committed
fix(View): ne plus réchercher la vue lorsque celle-ci est déjà un fichier existant
1 parent 090108d commit 511da51

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/View/Adapters/AbstractAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ public function exists(string $view, ?string $ext = null, array $options = []):
249249
*/
250250
protected function getRenderedFile(?array $options, string $view, ?string $ext = null): string
251251
{
252+
if (is_file($view)) {
253+
return realpath($view);
254+
}
255+
252256
$options = (array) $options;
253257
$ext ??= $this->ext;
254258

0 commit comments

Comments
 (0)