Removing broken Registry stuff (as registry is now deprecated in b8framework) - Fixes #58
This commit is contained in:
parent
efcf209478
commit
6e3df00f62
3 changed files with 5 additions and 3 deletions
|
|
@ -62,8 +62,8 @@ b8\Database::setDetails('{$dbName}', '{$dbUser}', '{$dbPass}');
|
|||
b8\Database::setWriteServers(array('{$dbHost}'));
|
||||
b8\Database::setReadServers(array('{$dbHost}'));
|
||||
|
||||
\$registry = b8\Registry::getInstance();
|
||||
\$registry->set('install_url', '{$ciUrl}');
|
||||
\$config = b8\Config::getInstance();
|
||||
\$config->set('install_url', '{$ciUrl}');
|
||||
";
|
||||
|
||||
// Has the user entered Github app details? If so add those to config:
|
||||
|
|
|
|||
|
|
@ -37,6 +37,8 @@ require_once(APPLICATION_PATH . 'vendor/autoload.php');
|
|||
|
||||
// Load configuration if present:
|
||||
$config = new b8\Config();
|
||||
$request = new b8\Http\Request();
|
||||
$registry = new b8\Registry($config, $request);
|
||||
|
||||
if (file_exists(APPLICATION_PATH . 'config.php')) {
|
||||
require(APPLICATION_PATH . 'config.php');
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ ini_set('display_errors', 'on');
|
|||
|
||||
require_once('bootstrap.php');
|
||||
|
||||
$fc = new PHPCI\Application(b8\Config::getInstance());
|
||||
$fc = new PHPCI\Application($config, $request);
|
||||
print $fc->handleRequest();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue