Improved readme
removed contributing and code of conduct as they are basically just fluff when no one knows this repo exists
removed composer.lock because this repo doesn't install anything to lock
update copywrite to 2025
composer update to description
comments
This commit is contained in:
Joey Kimsey
2025-02-02 07:14:21 -05:00
parent 247c3ee180
commit 4dbea74e5f
11 changed files with 59 additions and 167 deletions

View File

@ -6,7 +6,7 @@
*
* @version 1.1
* @author Joey Kimsey <Joey@thetempusproject.com>
* @link https://TheTempusProject.com/Hermes
* @link https://TheTempusProject.com/libraries/Hermes
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
*/
@ -14,6 +14,7 @@ namespace TheTempusProject\Hermes\Functions;
class Route {
public static function testRouting() {
// @todo - wtf
// $url = Routes::getAddress( true ) . DEFAULT_CONTROLLER_CLASS . '/' . DEFAULT_CONTROLLER_METHOD;
// echo '<pre>' . var_export( $url, true ) . '</pre>';
// $host = gethostbyname( $url );
@ -59,6 +60,7 @@ class Route {
}
public static function getHost( $internal = false ) {
// @todo - wtf
$host = $_SERVER['HTTP_HOST'];
if ( true === $internal ) {
// if ( 'docker' === getenv( 'APP_ENV' ) ) {
@ -85,6 +87,7 @@ class Route {
$route = implode( '/', $fullArray ) . '/';
return $route;
}
/**
* finds the physical location of the application
*