Skip to content

Commit

Permalink
Add the new pre_config.php file for future use
Browse files Browse the repository at this point in the history
This needs to be added after the dirroot and before the autoload
statements in your config.php - see config-dist.php for examples
or look herefor the new line

$dirroot = realpath(dirname(__FILE__));

// New for 2021 - We may need to do some tweaking before the autoloader wakes up
// So we need to add this to front of config.php
require_once $dirroot."/vendor/tsugi/lib/include/pre_config.php";

$loader = require_once($dirroot."/vendor/autoload.php");
  • Loading branch information
csev committed Jan 7, 2021
1 parent 2f2b989 commit e9fd767
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"symfony/polyfill-php80" : "v1.18.1",


"tsugi/lib": "dev-master#8420461e86df359d196942a4e2592343560ecbfb",
"tsugi/lib": "dev-master#25acc0eeb079c1003597cccf730d70a9b55fd2e5",
"koseu/lib": "dev-master#e12ce09c73c7bb8c4c9377012260d36ad5138bbe"
},
"config": {
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions config-dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ function __the_end(){

// If this file is symbolically linked you'll need to manually define the absolute path,
// otherwise this will resolve incorrectly.

$dirroot = realpath(dirname(__FILE__));

// New for 2021 - We may need to do some tweaking before the autoloader wakes up
// So we need to add this to front of config.php
require_once $dirroot."/vendor/tsugi/lib/include/pre_config.php";

$loader = require_once($dirroot."/vendor/autoload.php");

// If we just are using Tsugi but not part of another site
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2919,12 +2919,12 @@
"source": {
"type": "git",
"url": "https://github.com/tsugiproject/tsugi-php.git",
"reference": "8420461e86df359d196942a4e2592343560ecbfb"
"reference": "25acc0eeb079c1003597cccf730d70a9b55fd2e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/8420461e86df359d196942a4e2592343560ecbfb",
"reference": "8420461e86df359d196942a4e2592343560ecbfb",
"url": "https://api.github.com/repos/tsugiproject/tsugi-php/zipball/25acc0eeb079c1003597cccf730d70a9b55fd2e5",
"reference": "25acc0eeb079c1003597cccf730d70a9b55fd2e5",
"shasum": ""
},
"require": {
Expand Down
4 changes: 4 additions & 0 deletions vendor/tsugi/lib/include/pre_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php

// Something will eventually go here.

0 comments on commit e9fd767

Please sign in to comment.