rework structure
added Router added .htaccess removed API-Module => is not used renamed batch to CRON
This commit is contained in:
parent
ccf2f506f0
commit
c33bb4cb3a
37 changed files with 680 additions and 190 deletions
41
src/Venom/Core/Registry.php
Normal file
41
src/Venom/Core/Registry.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue