- added SEO-URL-Mode
- added Language support
This commit is contained in:
parent
fe7bacd2f6
commit
ccf2f506f0
13 changed files with 201 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue