Skip to content

Commit

Permalink
Merge pull request #69 from Uxie-Framework/hotfix/Env-bug
Browse files Browse the repository at this point in the history
Hotfix/env bug
  • Loading branch information
Amin-Cheribet authored Apr 16, 2022
2 parents 792c7fd + 4b57967 commit 82762e2
Show file tree
Hide file tree
Showing 44 changed files with 93 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .env.example
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified App/App.php
100644 → 100755
Empty file.
Empty file modified App/Controllers/Controller.php
100644 → 100755
Empty file.
Empty file modified App/Filters/ExampleValidator.php
100644 → 100755
Empty file.
Empty file modified App/Filters/Filterable.php
100644 → 100755
Empty file.
Empty file modified App/Middlewares/Csrf.php
100644 → 100755
Empty file.
Empty file modified App/Middlewares/NullifyInput.php
100644 → 100755
Empty file.
Empty file modified App/Middlewares/Statistics.php
100644 → 100755
Empty file.
Empty file modified App/MiddlewaresLocator.php
100644 → 100755
Empty file.
Empty file modified App/Models/Example.php
100644 → 100755
Empty file.
Empty file modified App/Repositories/Example.php
100644 → 100755
Empty file.
Empty file modified App/Routes.php
100644 → 100755
Empty file.
Empty file modified App/Services/.gitkeep
100644 → 100755
Empty file.
Empty file modified App/Views/CoreViews/error.blade.php
100644 → 100755
Empty file.
Empty file modified App/Views/index.blade.php
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified cache/.gitkeep
100644 → 100755
Empty file.
Empty file modified cache/blade/.gitkeep
100644 → 100755
Empty file.
Empty file modified cache/pug/.gitkeep
100644 → 100755
Empty file.
Empty file modified composer.json
100644 → 100755
Empty file.
170 changes: 84 additions & 86 deletions composer.lock
100644 → 100755

Large diffs are not rendered by default.

Empty file modified database/migrations/20180209152652_statistics.php
100644 → 100755
Empty file.
Empty file modified database/migrations/template.txt
100644 → 100755
Empty file.
Empty file modified defaults.php
100644 → 100755
Empty file.
Empty file modified log/.gitkeep
100644 → 100755
Empty file.
Empty file modified phinx
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion phinx.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

// load our environment files - used to store credentials & configuration
(new Dotenv\Dotenv('./'))->load();
$dotENV = Dotenv\Dotenv::createUnsafeImmutable(__DIR__);
$dotENV->load();

return
[
Expand Down
Empty file modified public/.htaccess
100644 → 100755
Empty file.
Empty file modified public/css/files/fonts/grand-hotel.otf
100644 → 100755
Empty file.
Empty file modified public/css/files/fonts/hand.ttf
100644 → 100755
Empty file.
Empty file modified public/css/files/fonts/regular.ttf
100644 → 100755
Empty file.
Empty file modified public/css/koala-config.json
100644 → 100755
Empty file.
Empty file modified public/css/main.css
100644 → 100755
Empty file.
Empty file modified public/css/sass/_mixins.sass
100644 → 100755
Empty file.
Empty file modified public/css/sass/_variables.sass
100644 → 100755
Empty file.
Empty file modified public/css/sass/main.sass
100644 → 100755
Empty file.
7 changes: 6 additions & 1 deletion public/index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file modified public/js/jquery.js
100644 → 100755
Empty file.
Empty file modified public/js/public.js
100644 → 100755
Empty file.
Empty file modified public/robots.txt
100644 → 100755
Empty file.
Empty file modified resources/languages/Validations.php
100644 → 100755
Empty file.
Empty file modified tests/BasicTest.php
100644 → 100755
Empty file.

0 comments on commit 82762e2

Please sign in to comment.