Skip to content

Commit

Permalink
#90 Fixes config file path bug on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
amostajo committed Aug 13, 2020
1 parent 31ae94e commit 468bea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Base/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @copyright 10Quality <http://www.10quality.com>
* @license MIT
* @package WPMVC\Commands
* @version 1.1.6
* @version 1.1.11
*/
class BaseCommand extends Command
{
Expand Down Expand Up @@ -51,8 +51,8 @@ public function __construct($rootPath)
{
$this->rootPath = $rootPath;
// Check for MVC configuration file
$this->configFilename = file_exists($this->rootPath . '/app/config/app.php')
? $this->rootPath . '/app/config/app.php'
$this->configFilename = file_exists($this->rootPath . '/app/Config/app.php')
? $this->rootPath . '/app/Config/app.php'
: null;
if (empty($this->configFilename))
throw new NoticeException($this->key.'Command: No configuration file found.');
Expand Down

0 comments on commit 468bea1

Please sign in to comment.