$minimal to $core
This commit is contained in:
parent
321c28a53e
commit
a893aa6b5a
|
@ -72,18 +72,18 @@ class core extends controller
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param minimal $$minimal Instance of the MINIMAL
|
* @param minimal $$core Instance of the MINIMAL
|
||||||
* @param bool $$initialize Initialize a controller?
|
* @param bool $$initialize Initialize a controller?
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(minimal $$minimal, bool $$initialize = true)
|
public function __construct(minimal $$core, bool $$initialize = true)
|
||||||
{
|
{
|
||||||
// Blocking requests from CloudFlare (better to write this blocking into nginx config file)
|
// Blocking requests from CloudFlare (better to write this blocking into nginx config file)
|
||||||
if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label;
|
if (isset($$_SERVER['HTTP_USER_AGENT']) && $$_SERVER['HTTP_USER_AGENT'] === 'nginx-ssl early hints') return status::bruh->label;
|
||||||
|
|
||||||
// For the extends system
|
// For the extends system
|
||||||
parent::__construct(core: $$minimal);
|
parent::__construct(core: $$core);
|
||||||
|
|
||||||
if ($$initialize) {
|
if ($$initialize) {
|
||||||
// Requestet initializing
|
// Requestet initializing
|
||||||
|
|
Loading…
Reference in New Issue