Skip to content

Commit

Permalink
Merge pull request #13 from rorteg/feature-12
Browse files Browse the repository at this point in the history
Rename the config folder to etc. Issue reference: #12
  • Loading branch information
rorteg committed Feb 22, 2019
2 parents 50a5ace + 6ca3a62 commit 28a4e26
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
date_default_timezone_set('America/Sao_Paulo');

// Modules Settings
$modulesConfig = Factory::fromFiles(glob(BP . '/app/code/*/*/config/*.*'), true);
$modulesConfig = Factory::fromFiles(glob(BP . '/app/code/*/*/etc/*.*'), true);

// Global Settings
$globalConfig = Factory::fromFiles(glob(BP . '/app/config/*.*'), true);
$globalConfig = Factory::fromFiles(glob(BP . '/app/etc/*.*'), true);
$configMerged = $modulesConfig->merge($globalConfig)->toArray();

$serviceManager = new ServiceManager();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions app/code/Shelf/Db/Test/Integration/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class ConnectionTest extends TestCase

protected function setUp()
{
$config = require dirname(__DIR__) . '/../../../../config/db.php';
$config = require dirname(__DIR__) . '/../../../../etc/db.php';
$dbConfig = $config['db'];

$pdo = new \PDO($dbConfig['dns'], $dbConfig['username'], $dbConfig['password']);
Expand All @@ -33,7 +33,7 @@ protected function setUp()

public static function setUpBeforeClass()
{
$config = require dirname(__DIR__) . '/../../../../config/db.php';
$config = require dirname(__DIR__) . '/../../../../etc/db.php';
$dbConfig = $config['db'];

$pdo = new \PDO($dbConfig['dns'], $dbConfig['username'], $dbConfig['password']);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/config/db.php → app/etc/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$host = 'localhost';
$username = 'root';
$password = '';
$password = 'magento';
$database = 'shelf_dev';

return [
Expand Down
2 changes: 1 addition & 1 deletion app/config/view.php → app/etc/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
return [
'view' => [
// Twig Cache
//'cache' => false,
'cache' => false,
// Twig Debug
'debug' => false,
'twig_extensions' => [
Expand Down

0 comments on commit 28a4e26

Please sign in to comment.