diff --git a/.env.example b/.env.example old mode 100644 new mode 100755 index 852515f..9b2903f --- a/.env.example +++ b/.env.example @@ -10,7 +10,7 @@ PRODUCTION_MODE = OFF ERROR_REPORTING = -1 # Time and region -TIMEZONE = Africa/Algiers +TIMEZONE = Europe/London # Database connection details DB_CNX = mysql diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/App/App.php b/App/App.php old mode 100644 new mode 100755 diff --git a/App/Controllers/Controller.php b/App/Controllers/Controller.php old mode 100644 new mode 100755 diff --git a/App/Filters/ExampleValidator.php b/App/Filters/ExampleValidator.php old mode 100644 new mode 100755 diff --git a/App/Filters/Filterable.php b/App/Filters/Filterable.php old mode 100644 new mode 100755 diff --git a/App/Middlewares/Csrf.php b/App/Middlewares/Csrf.php old mode 100644 new mode 100755 diff --git a/App/Middlewares/NullifyInput.php b/App/Middlewares/NullifyInput.php old mode 100644 new mode 100755 diff --git a/App/Middlewares/Statistics.php b/App/Middlewares/Statistics.php old mode 100644 new mode 100755 diff --git a/App/MiddlewaresLocator.php b/App/MiddlewaresLocator.php old mode 100644 new mode 100755 diff --git a/App/Models/Example.php b/App/Models/Example.php old mode 100644 new mode 100755 diff --git a/App/Repositories/Example.php b/App/Repositories/Example.php old mode 100644 new mode 100755 diff --git a/App/Routes.php b/App/Routes.php old mode 100644 new mode 100755 diff --git a/App/Services/.gitkeep b/App/Services/.gitkeep old mode 100644 new mode 100755 diff --git a/App/Views/CoreViews/error.blade.php b/App/Views/CoreViews/error.blade.php old mode 100644 new mode 100755 diff --git a/App/Views/index.blade.php b/App/Views/index.blade.php old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/cache/.gitkeep b/cache/.gitkeep old mode 100644 new mode 100755 diff --git a/cache/blade/.gitkeep b/cache/blade/.gitkeep old mode 100644 new mode 100755 diff --git a/cache/pug/.gitkeep b/cache/pug/.gitkeep old mode 100644 new mode 100755 diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 diff --git a/composer.lock b/composer.lock old mode 100644 new mode 100755 index 5c17a2e..d8ac006 --- a/composer.lock +++ b/composer.lock @@ -346,7 +346,7 @@ }, { "name": "illuminate/bus", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/bus.git", @@ -399,16 +399,16 @@ }, { "name": "illuminate/collections", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "5cf7ed1c0a1b8049576b29f5cab5c822149aaa91" + "reference": "fc232e89c0214dba5d2b431220a24b02d480a472" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/5cf7ed1c0a1b8049576b29f5cab5c822149aaa91", - "reference": "5cf7ed1c0a1b8049576b29f5cab5c822149aaa91", + "url": "https://api.github.com/repos/illuminate/collections/zipball/fc232e89c0214dba5d2b431220a24b02d480a472", + "reference": "fc232e89c0214dba5d2b431220a24b02d480a472", "shasum": "" }, "require": { @@ -449,11 +449,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-15T14:40:58+00:00" + "time": "2022-03-25T14:53:23+00:00" }, { "name": "illuminate/container", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", @@ -504,7 +504,7 @@ }, { "name": "illuminate/contracts", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", @@ -552,7 +552,7 @@ }, { "name": "illuminate/events", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/events.git", @@ -607,7 +607,7 @@ }, { "name": "illuminate/filesystem", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/filesystem.git", @@ -669,7 +669,7 @@ }, { "name": "illuminate/macroable", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -715,7 +715,7 @@ }, { "name": "illuminate/pipeline", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/pipeline.git", @@ -763,16 +763,16 @@ }, { "name": "illuminate/support", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "79afba1609f944a1678986c9e2c4486ae25999a6" + "reference": "3f1de19528fc235d666f73d540d13a684da6bf3a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/79afba1609f944a1678986c9e2c4486ae25999a6", - "reference": "79afba1609f944a1678986c9e2c4486ae25999a6", + "url": "https://api.github.com/repos/illuminate/support/zipball/3f1de19528fc235d666f73d540d13a684da6bf3a", + "reference": "3f1de19528fc235d666f73d540d13a684da6bf3a", "shasum": "" }, "require": { @@ -827,11 +827,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-02-25T19:54:55+00:00" + "time": "2022-04-11T14:26:37+00:00" }, { "name": "illuminate/view", - "version": "v8.83.4", + "version": "v8.83.8", "source": { "type": "git", "url": "https://github.com/illuminate/view.git", @@ -1554,16 +1554,16 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.0", + "version": "1.6.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706" + "reference": "77a32518733312af16a44300404e945338981de3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706", - "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", + "reference": "77a32518733312af16a44300404e945338981de3", "shasum": "" }, "require": { @@ -1598,9 +1598,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" }, - "time": "2022-01-04T19:58:01+00:00" + "time": "2022-03-15T21:29:03+00:00" }, { "name": "phpoption/phpoption", @@ -2060,16 +2060,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.18", + "version": "9.5.20", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "1b5856028273bfd855e60a887278857d872ec67a" + "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1b5856028273bfd855e60a887278857d872ec67a", - "reference": "1b5856028273bfd855e60a887278857d872ec67a", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba", + "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba", "shasum": "" }, "require": { @@ -2099,7 +2099,7 @@ "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^2.3.4", + "sebastian/type": "^3.0", "sebastian/version": "^3.0.2" }, "require-dev": { @@ -2147,7 +2147,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.18" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20" }, "funding": [ { @@ -2159,7 +2159,7 @@ "type": "github" } ], - "time": "2022-03-08T06:52:28+00:00" + "time": "2022-04-01T12:37:26+00:00" }, { "name": "psr/container", @@ -2853,16 +2853,16 @@ }, { "name": "sebastian/environment", - "version": "5.1.3", + "version": "5.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac" + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", "shasum": "" }, "require": { @@ -2904,7 +2904,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" }, "funding": [ { @@ -2912,7 +2912,7 @@ "type": "github" } ], - "time": "2020-09-28T05:52:38+00:00" + "time": "2022-04-03T09:37:03+00:00" }, { "name": "sebastian/exporter", @@ -3344,28 +3344,28 @@ }, { "name": "sebastian/type", - "version": "2.3.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" + "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", - "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", "shasum": "" }, "require": { "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^9.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -3388,7 +3388,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/2.3.4" + "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" }, "funding": [ { @@ -3396,7 +3396,7 @@ "type": "github" } ], - "time": "2021-06-15T12:49:02+00:00" + "time": "2022-03-15T09:54:48+00:00" }, { "name": "sebastian/version", @@ -3531,16 +3531,16 @@ }, { "name": "symfony/console", - "version": "v4.4.38", + "version": "v4.4.40", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "5a50085bf5460f0c0d60a50b58388c1249826b8a" + "reference": "bdcc66f3140421038f495e5b50e3ca6ffa14c773" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/5a50085bf5460f0c0d60a50b58388c1249826b8a", - "reference": "5a50085bf5460f0c0d60a50b58388c1249826b8a", + "url": "https://api.github.com/repos/symfony/console/zipball/bdcc66f3140421038f495e5b50e3ca6ffa14c773", + "reference": "bdcc66f3140421038f495e5b50e3ca6ffa14c773", "shasum": "" }, "require": { @@ -3601,7 +3601,7 @@ "description": "Eases the creation of beautiful and testable command line interfaces", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/console/tree/v4.4.38" + "source": "https://github.com/symfony/console/tree/v4.4.40" }, "funding": [ { @@ -3617,29 +3617,29 @@ "type": "tidelift" } ], - "time": "2022-01-30T21:23:57+00:00" + "time": "2022-03-26T22:12:04+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.0", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -3668,7 +3668,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.1" }, "funding": [ { @@ -3684,20 +3684,20 @@ "type": "tidelift" } ], - "time": "2021-07-12T14:48:14+00:00" + "time": "2022-01-02T09:55:41+00:00" }, { "name": "symfony/filesystem", - "version": "v5.4.6", + "version": "v5.4.7", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "d53a45039974952af7f7ebc461ccdd4295e29440" + "reference": "3a4442138d80c9f7b600fb297534ac718b61d37f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/d53a45039974952af7f7ebc461ccdd4295e29440", - "reference": "d53a45039974952af7f7ebc461ccdd4295e29440", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/3a4442138d80c9f7b600fb297534ac718b61d37f", + "reference": "3a4442138d80c9f7b600fb297534ac718b61d37f", "shasum": "" }, "require": { @@ -3732,7 +3732,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.6" + "source": "https://github.com/symfony/filesystem/tree/v5.4.7" }, "funding": [ { @@ -3748,7 +3748,7 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2022-04-01T12:33:59+00:00" }, { "name": "symfony/finder", @@ -4221,22 +4221,22 @@ }, { "name": "symfony/service-contracts", - "version": "v2.5.0", + "version": "v2.5.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc" + "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", - "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/24d9dc654b83e91aa59f9d167b131bc3b5bea24c", + "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c", "shasum": "" }, "require": { "php": ">=7.2.5", "psr/container": "^1.1", - "symfony/deprecation-contracts": "^2.1" + "symfony/deprecation-contracts": "^2.1|^3" }, "conflict": { "ext-psr": "<1.1|>=2" @@ -4284,7 +4284,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v2.5.1" }, "funding": [ { @@ -4300,25 +4300,24 @@ "type": "tidelift" } ], - "time": "2021-11-04T16:48:04+00:00" + "time": "2022-03-13T20:07:29+00:00" }, { "name": "symfony/translation", - "version": "v5.3.14", + "version": "v5.2.12", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "945066809dc18f6e26123098e1b6e1d7a948660b" + "reference": "7b4ef368b25bbb758a7bd5fe20349433e84220ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/945066809dc18f6e26123098e1b6e1d7a948660b", - "reference": "945066809dc18f6e26123098e1b6e1d7a948660b", + "url": "https://api.github.com/repos/symfony/translation/zipball/7b4ef368b25bbb758a7bd5fe20349433e84220ed", + "reference": "7b4ef368b25bbb758a7bd5fe20349433e84220ed", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php80": "^1.16", "symfony/translation-contracts": "^2.3" @@ -4341,7 +4340,6 @@ "symfony/finder": "^4.4|^5.0", "symfony/http-kernel": "^5.0", "symfony/intl": "^4.4|^5.0", - "symfony/polyfill-intl-icu": "^1.21", "symfony/service-contracts": "^1.1.2|^2", "symfony/yaml": "^4.4|^5.0" }, @@ -4379,7 +4377,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v5.3.14" + "source": "https://github.com/symfony/translation/tree/v5.2.12" }, "funding": [ { @@ -4395,20 +4393,20 @@ "type": "tidelift" } ], - "time": "2022-01-03T19:49:08+00:00" + "time": "2021-07-21T13:17:02+00:00" }, { "name": "symfony/translation-contracts", - "version": "v2.5.0", + "version": "v2.5.1", "source": { "type": "git", "url": "https://github.com/symfony/translation-contracts.git", - "reference": "d28150f0f44ce854e942b671fc2620a98aae1b1e" + "reference": "1211df0afa701e45a04253110e959d4af4ef0f07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/d28150f0f44ce854e942b671fc2620a98aae1b1e", - "reference": "d28150f0f44ce854e942b671fc2620a98aae1b1e", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1211df0afa701e45a04253110e959d4af4ef0f07", + "reference": "1211df0afa701e45a04253110e959d4af4ef0f07", "shasum": "" }, "require": { @@ -4457,7 +4455,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/translation-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/translation-contracts/tree/v2.5.1" }, "funding": [ { @@ -4473,7 +4471,7 @@ "type": "tidelift" } ], - "time": "2021-08-17T14:20:01+00:00" + "time": "2022-01-02T09:53:40+00:00" }, { "name": "symfony/yaml", diff --git a/database/migrations/20180209152652_statistics.php b/database/migrations/20180209152652_statistics.php old mode 100644 new mode 100755 diff --git a/database/migrations/template.txt b/database/migrations/template.txt old mode 100644 new mode 100755 diff --git a/defaults.php b/defaults.php old mode 100644 new mode 100755 diff --git a/log/.gitkeep b/log/.gitkeep old mode 100644 new mode 100755 diff --git a/phinx b/phinx old mode 100644 new mode 100755 diff --git a/phinx.php b/phinx.php old mode 100644 new mode 100755 index 3f80055..a2d67c0 --- a/phinx.php +++ b/phinx.php @@ -1,7 +1,8 @@ load(); +$dotENV = Dotenv\Dotenv::createUnsafeImmutable(__DIR__); +$dotENV->load(); return [ diff --git a/public/.htaccess b/public/.htaccess old mode 100644 new mode 100755 diff --git a/public/css/files/fonts/grand-hotel.otf b/public/css/files/fonts/grand-hotel.otf old mode 100644 new mode 100755 diff --git a/public/css/files/fonts/hand.ttf b/public/css/files/fonts/hand.ttf old mode 100644 new mode 100755 diff --git a/public/css/files/fonts/regular.ttf b/public/css/files/fonts/regular.ttf old mode 100644 new mode 100755 diff --git a/public/css/koala-config.json b/public/css/koala-config.json old mode 100644 new mode 100755 diff --git a/public/css/main.css b/public/css/main.css old mode 100644 new mode 100755 diff --git a/public/css/sass/_mixins.sass b/public/css/sass/_mixins.sass old mode 100644 new mode 100755 diff --git a/public/css/sass/_variables.sass b/public/css/sass/_variables.sass old mode 100644 new mode 100755 diff --git a/public/css/sass/main.sass b/public/css/sass/main.sass old mode 100644 new mode 100755 diff --git a/public/index.php b/public/index.php old mode 100644 new mode 100755 index 67080d0..6db7f79 --- a/public/index.php +++ b/public/index.php @@ -11,7 +11,12 @@ // create IOC container IOC\IOC::createContainer(); // Load .env file -container()->build('Dotenv\Dotenv', __DIR__.'/../'); +// container()->build('Dotenv\Dotenv', [__DIR__ . '/../']); +// container()->Dotenv->load(); + +container()->bind('Dotenv', function () { + return Dotenv\Dotenv::createUnsafeImmutable(__DIR__ . '/../'); +}); container()->Dotenv->load(); // Load configuration diff --git a/public/js/jquery.js b/public/js/jquery.js old mode 100644 new mode 100755 diff --git a/public/js/public.js b/public/js/public.js old mode 100644 new mode 100755 diff --git a/public/robots.txt b/public/robots.txt old mode 100644 new mode 100755 diff --git a/resources/languages/Validations.php b/resources/languages/Validations.php old mode 100644 new mode 100755 diff --git a/tests/BasicTest.php b/tests/BasicTest.php old mode 100644 new mode 100755