Skip to content

Commit

Permalink
ControlCommand: normalized filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
castamir committed Nov 10, 2015
1 parent 1ba3b0b commit 34bde1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}],
"require": {
"php": ">=5.3.2",
"joseki/utils": "^1.0",
"nette/di": "~2.2",
"nette/utils": "~2.2",
"symfony/console": "~2.7",
Expand Down
3 changes: 2 additions & 1 deletion src/Joseki/FileTemplate/Console/Command/ControlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Joseki\FileTemplate\InvalidArgumentException;
use Joseki\FileTemplate\Schema;
use Joseki\Utils\FileSystem;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down Expand Up @@ -106,7 +107,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
@mkdir(dirname($fileName), 0777, true);
$content = $schema->translate(file_get_contents($templatePath));
file_put_contents($fileName, $content);
$output->writeln('Created file: ' . $fileName);
$output->writeln('Created file: ' . FileSystem::normalizePath($fileName));
}
}
}

0 comments on commit 34bde1f

Please sign in to comment.