Skip to content

Commit

Permalink
Moving to a new config scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKo7v committed Jun 9, 2015
1 parent 3712114 commit 2b527ee
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 59 deletions.
3 changes: 3 additions & 0 deletions app/init.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

require '../vendor/amilabs/devkit/src/init.php';
2 changes: 0 additions & 2 deletions web/config.sample.php → cfg/sample.chainy.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* Copy this file to config.local.php before making any changes.
*/

if(!defined('AMILABS')) die;

$aConfig += array(
'request' => array(
'type' => '\\AmiLabs\\Chainy\\RequestCHAINY'
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
"AmiLabs\\Chainy": "app/classes"
}
},
"minimum-stability": "dev",
"prefer-stable" : true
"minimum-stability": "dev",
"prefer-stable" : true,
"scripts": {
"post-update-cmd": "AmiLabs\\DevKit\\Utility\\Composer::postUpdate",
"post-install-cmd": "AmiLabs\\DevKit\\Utility\\Composer::postInstall"
}
}
50 changes: 0 additions & 50 deletions web/config.php

This file was deleted.

8 changes: 3 additions & 5 deletions web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
/**
* Frontend
*/
$appName = 'chainy';
require_once '../app/init.php';

use \AmiLabs\DevKit\Application;

require_once 'config.php';

Application::getInstance()->run();
\AmiLabs\DevKit\Application::getInstance()->run();

0 comments on commit 2b527ee

Please sign in to comment.