From 34bde1f279f59bff27196d4b4eae98900b18c66a Mon Sep 17 00:00:00 2001 From: castamir Date: Tue, 10 Nov 2015 12:23:19 +0100 Subject: [PATCH] ControlCommand: normalized filepath --- composer.json | 1 + src/Joseki/FileTemplate/Console/Command/ControlCommand.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index dfd8d44..0825eef 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Joseki/FileTemplate/Console/Command/ControlCommand.php b/src/Joseki/FileTemplate/Console/Command/ControlCommand.php index 404424f..34e8a01 100644 --- a/src/Joseki/FileTemplate/Console/Command/ControlCommand.php +++ b/src/Joseki/FileTemplate/Console/Command/ControlCommand.php @@ -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; @@ -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)); } } }