- Base is done; most of the language's components are now working!
- Implemented OPCACHE caching - Added View() token logic - New FileFetcher added to gather files from given view path
This commit is contained in:
1 parent
bcd49884fc
commit
6701a1cd59
16 files changed
+323
-69
No files matched your search
@@ -10,6 +10,12 @@ abstract class Context {
|
||||
|
||||
public string $extendFrom = "";
|
||||
|
||||
public string $className = "";
|
||||
|
||||
public string $compiledSource = "";
|
||||
|
||||
public string $viewPath = "";
|
||||
|
||||
public array $switchStack = [];
|
||||
|
||||
public array $iterateStack = [];
|
||||
@@ -42,8 +48,17 @@ abstract class Context {
|
||||
return implode(",", $context->useStack ?? []);
|
||||
}
|
||||
|
||||
public function variables(array $variables) : void
|
||||
#public function variables(array $variables) : void
|
||||
#{
|
||||
# $this->variables = $variables;
|
||||
#}
|
||||
|
||||
public function compiledClassPath() : string
|
||||
{
|
||||
$this->variables = $variables;
|
||||
if ($this->namespace) {
|
||||
return "\\{$this->namespace}\\{$this->className}";
|
||||
}
|
||||
|
||||
return $this->className;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user