Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
f80f7bed6b | |||
e3cf6beebb | |||
570a286c13 |
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Bin;
|
namespace TheTempusProject\Bedrock\Bin;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
use TheTempusProject\Hermes\Functions\Route as Routes;
|
use TheTempusProject\Hermes\Functions\Route as Routes;
|
||||||
use TheTempusProject\Bedrock\Functions\Input;
|
use TheTempusProject\Bedrock\Functions\Input;
|
||||||
use TheTempusProject\Bedrock\Functions\Check;
|
use TheTempusProject\Bedrock\Functions\Check;
|
||||||
@ -46,8 +46,8 @@ class Bedrock {
|
|||||||
Debug::group( 'Bedrock Application' );
|
Debug::group( 'Bedrock Application' );
|
||||||
ob_start();
|
ob_start();
|
||||||
self::$activeConfig = new Config( CONFIG_JSON );
|
self::$activeConfig = new Config( CONFIG_JSON );
|
||||||
set_error_handler( [ 'TheTempusProject\\Canary\\Canary', 'handle_error' ] );
|
set_error_handler( [ BEDROCK_DEFAULT_ERROR_HANDLER, 'handle_error' ] );
|
||||||
set_exception_handler( [ 'TheTempusProject\\Canary\\Canary', 'handle_exception' ] );
|
set_exception_handler( [ BEDROCK_DEFAULT_EXCEPTION_HANDLER, 'handle_exception' ] );
|
||||||
self::$controllerName = DEFAULT_CONTROLLER_CLASS;
|
self::$controllerName = DEFAULT_CONTROLLER_CLASS;
|
||||||
self::$methodName = DEFAULT_CONTROLLER_METHOD;
|
self::$methodName = DEFAULT_CONTROLLER_METHOD;
|
||||||
$this->setUrl( $url );
|
$this->setUrl( $url );
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Classes;
|
namespace TheTempusProject\Bedrock\Classes;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
use TheTempusProject\Bedrock\Functions\Check;
|
use TheTempusProject\Bedrock\Functions\Check;
|
||||||
use TheTempusProject\Bedrock\Functions\Input;
|
use TheTempusProject\Bedrock\Functions\Input;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Classes;
|
namespace TheTempusProject\Bedrock\Classes;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
use TheTempusProject\Bedrock\Functions\Session;
|
use TheTempusProject\Bedrock\Functions\Session;
|
||||||
use TheTempusProject\Houdini\Classes\Issues;
|
use TheTempusProject\Houdini\Classes\Issues;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ namespace TheTempusProject\Bedrock\Classes;
|
|||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use TheTempusProject\Hermes\Functions\Redirect;
|
use TheTempusProject\Hermes\Functions\Redirect;
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class CustomException extends Exception {
|
class CustomException extends Exception {
|
||||||
private $originFunction = null;
|
private $originFunction = null;
|
||||||
|
@ -16,7 +16,7 @@ namespace TheTempusProject\Bedrock\Classes;
|
|||||||
use PDO;
|
use PDO;
|
||||||
use PDOException;
|
use PDOException;
|
||||||
use TheTempusProject\Houdini\Classes\Pagination;
|
use TheTempusProject\Houdini\Classes\Pagination;
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Database {
|
class Database {
|
||||||
public static $instance = null;
|
public static $instance = null;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Classes;
|
namespace TheTempusProject\Bedrock\Classes;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
use TheTempusProject\Bedrock\Functions\Check;
|
use TheTempusProject\Bedrock\Functions\Check;
|
||||||
use TheTempusProject\Bedrock\Bedrock;
|
use TheTempusProject\Bedrock\Bedrock;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Classes;
|
namespace TheTempusProject\Bedrock\Classes;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
use TheTempusProject\Bedrock\Classes\Config;
|
use TheTempusProject\Bedrock\Classes\Config;
|
||||||
use TheTempusProject\Bedrock\Classes\Database;
|
use TheTempusProject\Bedrock\Classes\Database;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ use TheTempusProject\Hermes\Functions\Route as Routes;
|
|||||||
use TheTempusProject\Bedrock\Functions\Input;
|
use TheTempusProject\Bedrock\Functions\Input;
|
||||||
use TheTempusProject\Bedrock\Classes\Config;
|
use TheTempusProject\Bedrock\Classes\Config;
|
||||||
use TheTempusProject\Bedrock\Functions\Check;
|
use TheTempusProject\Bedrock\Functions\Check;
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Pagination extends Template {
|
class Pagination extends Template {
|
||||||
//The settings that will not change
|
//The settings that will not change
|
||||||
|
@ -65,6 +65,12 @@
|
|||||||
if (!defined('CANARY_ENABLED')) {
|
if (!defined('CANARY_ENABLED')) {
|
||||||
define('CANARY_ENABLED', false);
|
define('CANARY_ENABLED', false);
|
||||||
}
|
}
|
||||||
|
if (!defined('BEDROCK_DEFAULT_ERROR_HANDLER')) {
|
||||||
|
define('BEDROCK_DEFAULT_ERROR_HANDLER', 'TheTempusProject\\Canary\\Bin\\Canary');
|
||||||
|
}
|
||||||
|
if (!defined('BEDROCK_DEFAULT_EXCEPTION_HANDLER')) {
|
||||||
|
define('BEDROCK_DEFAULT_EXCEPTION_HANDLER', 'TheTempusProject\\Canary\\Bin\\Canary');
|
||||||
|
}
|
||||||
if (!defined('DEBUG_EMAIL')) {
|
if (!defined('DEBUG_EMAIL')) {
|
||||||
define('DEBUG_EMAIL', 'webmaster@' . $_SERVER['HTTP_HOST']);
|
define('DEBUG_EMAIL', 'webmaster@' . $_SERVER['HTTP_HOST']);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Bedrock\Classes\Config;
|
use TheTempusProject\Bedrock\Classes\Config;
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Check {
|
class Check {
|
||||||
private static $formValidator = null;
|
private static $formValidator = null;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Code {
|
class Code {
|
||||||
/**
|
/**
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Cookie {
|
class Cookie {
|
||||||
/**
|
/**
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Hash {
|
class Hash {
|
||||||
/**
|
/**
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Input {
|
class Input {
|
||||||
/**
|
/**
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Session {
|
class Session {
|
||||||
/**
|
/**
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Bedrock\Classes\Config;
|
use TheTempusProject\Bedrock\Classes\Config;
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Token {
|
class Token {
|
||||||
private static $tokenName;
|
private static $tokenName;
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
namespace TheTempusProject\Bedrock\Functions;
|
namespace TheTempusProject\Bedrock\Functions;
|
||||||
|
|
||||||
use TheTempusProject\Canary\Canary as Debug;
|
use TheTempusProject\Canary\Bin\Canary as Debug;
|
||||||
|
|
||||||
class Upload {
|
class Upload {
|
||||||
public static $lastUpload = null;
|
public static $lastUpload = null;
|
||||||
|
20
composer.lock
generated
20
composer.lock
generated
@ -12,7 +12,7 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.thetempusproject.com/the-tempus-project/canary",
|
"url": "https://git.thetempusproject.com/the-tempus-project/canary",
|
||||||
"reference": "be5589533f8c1d0b1c28bac8829333f0077c698d"
|
"reference": "7746eb4af73f3eaba040d547904a251bbdab6977"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1.0"
|
"php": ">=8.1.0"
|
||||||
@ -21,12 +21,12 @@
|
|||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": [
|
"files": [
|
||||||
"config/constants.php",
|
"Config/constants.php",
|
||||||
"bin/canary.php"
|
"Bin/Canary.php"
|
||||||
],
|
],
|
||||||
"classmap": [
|
"psr-4": {
|
||||||
"classes"
|
"TheTempusProject\\Canary\\Classes\\": "Classes"
|
||||||
]
|
}
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
"license": [
|
"license": [
|
||||||
@ -48,7 +48,7 @@
|
|||||||
"thetempusproject",
|
"thetempusproject",
|
||||||
"tools"
|
"tools"
|
||||||
],
|
],
|
||||||
"time": "2024-08-08T05:18:19+00:00"
|
"time": "2024-08-09T04:35:45+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "thetempusproject/hermes",
|
"name": "thetempusproject/hermes",
|
||||||
@ -56,7 +56,7 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.thetempusproject.com/the-tempus-project/hermes",
|
"url": "https://git.thetempusproject.com/the-tempus-project/hermes",
|
||||||
"reference": "e38f8debefb7097b15cb479184dc869e3e3111c0"
|
"reference": "9d6a79d80be98d0e598ce08c47a98d37814d1105"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1.0"
|
"php": ">=8.1.0"
|
||||||
@ -100,7 +100,7 @@
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.thetempusproject.com/the-tempus-project/houdini",
|
"url": "https://git.thetempusproject.com/the-tempus-project/houdini",
|
||||||
"reference": "b2d044da64ca1869432dc12b9c98fdb60379ffd9"
|
"reference": "3de98733ac32c0a6e1a3230cbccfa33263e399be"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1.0",
|
"php": ">=8.1.0",
|
||||||
@ -137,7 +137,7 @@
|
|||||||
"thetempusproject",
|
"thetempusproject",
|
||||||
"tools"
|
"tools"
|
||||||
],
|
],
|
||||||
"time": "2024-08-08T05:17:27+00:00"
|
"time": "2024-08-09T04:56:06+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [],
|
||||||
|
Reference in New Issue
Block a user