Find on line 46 in file /home/alexandrov/domains/expansa.org/public_html/expansa/View/Factory.php
56: /home/alexandrov/domains/expansa.org/public_html/expansa/Patterns/Facade.php
62: /home/alexandrov/domains/expansa.org/public_html/expansa/functions.php
80: /home/alexandrov/domains/expansa.org/public_html/cache/views/49925e9d2fa28d5a3208b2c48eb50933790a7ba1.php
36: /home/alexandrov/domains/expansa.org/public_html/expansa/View/Engines/PhpEngine.php
37: /home/alexandrov/domains/expansa.org/public_html/expansa/View/Engines/PhpEngine.php
25: /home/alexandrov/domains/expansa.org/public_html/expansa/View/Engines/PhpEngine.php
38: /home/alexandrov/domains/expansa.org/public_html/expansa/View/Engines/BladeEngine.php
35: /home/alexandrov/domains/expansa.org/public_html/expansa/View/View.php
100: /home/alexandrov/domains/expansa.org/public_html/app/Controllers/Web.php
636: /home/alexandrov/domains/expansa.org/public_html/expansa/Routing/Router.php
587: /home/alexandrov/domains/expansa.org/public_html/expansa/Routing/Router.php
401: /home/alexandrov/domains/expansa.org/public_html/expansa/Routing/Router.php
56: /home/alexandrov/domains/expansa.org/public_html/expansa/Patterns/Facade.php
66: /home/alexandrov/domains/expansa.org/public_html/bootstrap.php
30: /home/alexandrov/domains/expansa.org/public_html/expansa/Debug/Debug.php
56: /home/alexandrov/domains/expansa.org/public_html/expansa/Patterns/Facade.php
34: /home/alexandrov/domains/expansa.org/public_html/bootstrap.php
9: /home/alexandrov/domains/expansa.org/public_html/index.php
$this->share('__env', $this);
}
public function make(string $view, array $data = []): View
{
$file = $this->finder->find($view);
if ($file === null) {
throw new ViewException("File '$view' does not exist!");
}
$data = array_merge($this->shared, $data);
return new View($this, $this->getEngine($file), $view, $file['path'], $data);
}
public function getEngine(array $file): Engine
{
$engine = $this->engine->resolveByExtension($file['extension']);
$engine->setFactory($this);
$engine->setCache($this->cache, $this->cachePath);
return $engine;
}
public function share(string|array $key, mixed $value = null): void
{
if (is_array($key)) {