Skip to content

Commit

Permalink
Update controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 authored Jun 18, 2024
1 parent 4c2bbde commit 86be395
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions upload/system/engine/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@ public function __construct($registry) {
$this->registry = $registry;
}

public function __get(string $key): object {
if ($this->registry->has($key)) {
return $this->registry->get($key);
} else {
throw new \Exception('Error: Could not call registry key ' . $key . '!');
}
public function __get($key) {
return $this->registry->get($key);
}

public function __set($key, $value): void {
public function __set($key, $value) {
$this->registry->set($key, $value);
}
}

0 comments on commit 86be395

Please sign in to comment.