commit dd312f5ea0846648d024a94c35d8c5a4c36d94b9 Author: User Date: Mon May 29 01:38:54 2023 +0300 Init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31dc5a1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.idea/ +/vendor +composer.lock \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..cf9c5e3 --- /dev/null +++ b/composer.json @@ -0,0 +1,20 @@ +{ + "name": "rmphp/foundation", + "license": "proprietary", + "authors": [ + { + "name": "Yuri Zuev", + "email": "y_zuev@mail.ru" + } + ], + "require": { + "php": "^8.1", + "psr/http-message": "^1.0" + }, + "autoload": { + "psr-4": { + "Rmphp\\Foundation\\": "src/" + } + } + +} diff --git a/src/Exceptions/AppError.php b/src/Exceptions/AppError.php new file mode 100644 index 0000000..8abc34d --- /dev/null +++ b/src/Exceptions/AppError.php @@ -0,0 +1,11 @@ +className = $className; + $this->methodName = $methodName; + $this->params = (is_array($params)) ? $params : []; + } +} \ No newline at end of file diff --git a/src/RouterInterface.php b/src/RouterInterface.php new file mode 100644 index 0000000..db850e0 --- /dev/null +++ b/src/RouterInterface.php @@ -0,0 +1,12 @@ +