Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/blame/commit/502432024e89f38b08f62547cfe8a012d1bd79ce/system/engine/registry.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework

42 lines
765 B

6 years ago
<?php
/*
* Copyright © 2021 ExacTI Technology Solutions. All rights reserved.
* GPLv3 General License.
* https://exacti.com.br
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
*/
namespace Phacil\Framework;
/** @package Phacil\Framework */
6 years ago
final class Registry {
private $data = array();
public $routeOrig;
/**
* @param string $key
* @return mixed
*/
6 years ago
public function get($key) {
return (isset($this->data[$key]) ? $this->data[$key] : NULL);
}
/**
* @param string $key
* @param string $value
* @return void
*/
6 years ago
public function set($key, $value) {
$this->data[$key] = $value;
}
/**
* @param string $key
* @return bool
*/
6 years ago
public function has($key) {
return isset($this->data[$key]);
}
}