diff --git a/system/engine/interfaces/url.php b/system/engine/interfaces/url.php index eae425a..d39ed5d 100644 --- a/system/engine/interfaces/url.php +++ b/system/engine/interfaces/url.php @@ -11,6 +11,8 @@ namespace Phacil\Framework\Interfaces; interface Url { + const NONSSL = 'NONSSL'; + /** * @param string $url * @param string $ssl @@ -24,7 +26,7 @@ interface Url * @param string $connection * @return string */ - public function link($route, $args = '', $connection = 'NONSSL'); + public function link($route, $args = '', $connection = self::NONSSL); /** * @param string $hook diff --git a/system/system.php b/system/system.php index 4b3d171..fbea04d 100644 --- a/system/system.php +++ b/system/system.php @@ -99,7 +99,7 @@ final class startEngineExacTI { self::$RegistryAlt = &$this->registry; - $this->registry::addPreference(\Phacil\Framework\Config::DIR_SYSTEM()."etc/preferences.json"); + \Phacil\Framework\Registry::addPreference(\Phacil\Framework\Config::DIR_SYSTEM()."etc/preferences.json"); if($this->composer) { $this->registry->set('composer', $this->composer); diff --git a/system/url/autoload.php b/system/url/autoload.php index 67a430b..4572bbf 100644 --- a/system/url/autoload.php +++ b/system/url/autoload.php @@ -67,8 +67,8 @@ class Url implements UrlInterface { * @param string $connection * @return string */ - public function link($route, $args = '', $connection = 'NONSSL') { - if ($connection == 'NONSSL') { + public function link($route, $args = '', $connection = self::NONSSL) { + if ($connection == self::NONSSL) { $url = $this->url; } else { $url = $this->ssl;