Browse Source

View\Compiler: add @php and @endphp

Visman 1 year ago
parent
commit
1d917f0151
1 changed files with 16 additions and 0 deletions
  1. 16 0
      app/Core/View/Compiler.php

+ 16 - 0
app/Core/View/Compiler.php

@@ -505,4 +505,20 @@ EOD;
     {
         return "<?php break; ?>";
     }
+
+    /**
+     * @php
+     */
+    protected function compilePhp(): string
+    {
+        return "<?php";
+    }
+
+    /**
+     * @endphp
+     */
+    protected function compileEndphp(): string
+    {
+        return " ?>";
+    }
 }