- added SEO-URL-Mode

- added Language support
This commit is contained in:
Maurice Grönwoldt 2020-07-24 11:08:07 +02:00
commit ccf2f506f0
13 changed files with 201 additions and 7 deletions

View file

@ -4,13 +4,39 @@
namespace Venom;
use Venom\SEO\SeoController;
/**
* Singleton Class... hold current URL => can
* @package Venom
*/
class Registry
{
public function __construct()
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;
}
}