Skip to content

Commit 0f50ac2

Browse files
Clockwork/Support/Vanilla/Clockwork.php: Make some configuration settings available
1 parent b3a976f commit 0f50ac2

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Clockwork/Support/Vanilla/Clockwork.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,4 +481,31 @@ public static function __callStatic($method, $args = [])
481481
{
482482
return static::instance()->$method(...$args);
483483
}
484+
485+
public function isEnabled()
486+
{
487+
return $this->config['enable'];
488+
}
489+
490+
public function getApiPath()
491+
{
492+
return $this->config['api'];
493+
}
494+
495+
public function isWebEnabled()
496+
{
497+
return $this->config['web']['enable'];
498+
}
499+
500+
public function getWebPath()
501+
{
502+
// TODO: Clarify what the meaning here is.
503+
// return $this->config['web']['uri'];
504+
return '/web';
505+
}
506+
507+
public function isAuthenticationEnabled()
508+
{
509+
return $this->config['authentication'];
510+
}
484511
}

0 commit comments

Comments
 (0)