venom/src/Venom/Core/Registry.php
Maurice Grönwoldt c33bb4cb3a rework structure
added Router
added .htaccess
removed API-Module => is not used
renamed batch to CRON
2020-09-10 22:47:58 +02:00

41 lines
No EOL
747 B
PHP

<?php
namespace Venom\Core;
use Venom\Routing\SeoController;
/**
* Singleton Class... hold current URL => can
* @package Venom
*/
class Registry
{
private static ?Registry $instance = null;
private SeoController $seo;
private Language $lang;
private function __construct()
{
$this->seo = new SeoController();
$this->lang = new Language();
}
public static function getInstance(): Registry
{
if (self::$instance === null) {
self::$instance = new Registry();
}
return self::$instance;
}
public function getSeo(): SeoController
{
return $this->seo;
}
public function getLang(): Language
{
return $this->lang;
}
}