Skip to content

Commit

Permalink
[init] Fix do not force create extend directory. (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Dec 12, 2016
1 parent 3aacce4 commit 4f9dd65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Utils/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class ConfigurationManager
*/
public function loadConfiguration($applicationDirectory)
{
$homeConfig = $this->getHomeDirectory() . '/.console/';
if (!is_dir($homeConfig)) {
mkdir($homeConfig, 0777);
}

$this->applicationDirectory = $applicationDirectory;
$input = new ArgvInput();
$root = $input->getParameterOption(['--root'], null);
Expand Down Expand Up @@ -281,7 +286,7 @@ public function loadExtendLibraries()
{
$directory = $this->getHomeDirectory() . '/.console/extend/';
if (!is_dir($directory)) {
mkdir($directory, 0777, true);
return null;
}

$autoloadFile = $directory . 'vendor/autoload.php';
Expand Down

0 comments on commit 4f9dd65

Please sign in to comment.