mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix CS
This commit is contained in:
@@ -58,7 +58,7 @@ class BowerInstall extends Command
|
|||||||
if ($input->getOption('clear-cache')) {
|
if ($input->getOption('clear-cache')) {
|
||||||
$output->write("Cleaning bower cache... ");
|
$output->write("Cleaning bower cache... ");
|
||||||
$bower->command(array('cache', 'clean'));
|
$bower->command(array('cache', 'clean'));
|
||||||
$output->writeln("<info>OK</info>");
|
$output->writeln("<comment>OK</comment>");
|
||||||
}
|
}
|
||||||
|
|
||||||
$success = false;
|
$success = false;
|
||||||
@@ -66,7 +66,7 @@ class BowerInstall extends Command
|
|||||||
try {
|
try {
|
||||||
$output->write("Installing assets...");
|
$output->write("Installing assets...");
|
||||||
$grunt->command('install-assets');
|
$grunt->command('install-assets');
|
||||||
$output->write(" <info>OK</info>");
|
$output->write(" <comment>OK</comment>");
|
||||||
$output->writeln("");
|
$output->writeln("");
|
||||||
$this->container['console']->get('assets:compile-less')->execute($input, $output);
|
$this->container['console']->get('assets:compile-less')->execute($input, $output);
|
||||||
$success = true;
|
$success = true;
|
||||||
|
@@ -36,7 +36,7 @@ class ComposerInstall extends Command
|
|||||||
|
|
||||||
$output->write("Updating composer... ");
|
$output->write("Updating composer... ");
|
||||||
$composer->command('self-update');
|
$composer->command('self-update');
|
||||||
$output->writeln("<info>OK</info>");
|
$output->writeln("<comment>OK</comment>");
|
||||||
|
|
||||||
$commands = array('install', '--optimize-autoloader');
|
$commands = array('install', '--optimize-autoloader');
|
||||||
if ($input->getOption('prefer-source')) {
|
if ($input->getOption('prefer-source')) {
|
||||||
@@ -47,11 +47,11 @@ class ComposerInstall extends Command
|
|||||||
if ($input->getOption('no-dev')) {
|
if ($input->getOption('no-dev')) {
|
||||||
$output->write("Installing dependencies <info>without</info> developer packages ");
|
$output->write("Installing dependencies <info>without</info> developer packages ");
|
||||||
$composer->command(array_merge($commands, array('--no-dev')));
|
$composer->command(array_merge($commands, array('--no-dev')));
|
||||||
$output->writeln("<info>OK</info>");
|
$output->writeln("<comment>OK</comment>");
|
||||||
} else {
|
} else {
|
||||||
$output->write("Installing dependencies <info>with</info> developer packages ");
|
$output->write("Installing dependencies <info>with</info> developer packages ");
|
||||||
$composer->command(array_merge($commands, array('--dev')));
|
$composer->command(array_merge($commands, array('--dev')));
|
||||||
$output->writeln("<info>OK</info>");
|
$output->writeln("<comment>OK</comment>");
|
||||||
}
|
}
|
||||||
} catch (ExecutionFailureException $e) {
|
} catch (ExecutionFailureException $e) {
|
||||||
throw new RuntimeException('Unable to install composer dependencies', $e->getCode(), $e);
|
throw new RuntimeException('Unable to install composer dependencies', $e->getCode(), $e);
|
||||||
|
@@ -33,9 +33,8 @@ class InstallAll extends Command
|
|||||||
{
|
{
|
||||||
$ret = 0;
|
$ret = 0;
|
||||||
|
|
||||||
$ret += $this->container['console']->get('dependencies:bower')->execute($input, $output);
|
|
||||||
$ret += $this->container['console']->get('dependencies:composer')->execute($input, $output);
|
$ret += $this->container['console']->get('dependencies:composer')->execute($input, $output);
|
||||||
$ret += $this->container['console']->get('assets:compile-less')->execute($input, $output);
|
$ret += $this->container['console']->get('dependencies:bower')->execute($input, $output);
|
||||||
|
|
||||||
return min($ret, 255);
|
return min($ret, 255);
|
||||||
}
|
}
|
||||||
|
@@ -38,7 +38,8 @@ abstract class AbstractPluginCommand extends Command
|
|||||||
$this->container['plugins.autoloader-generator']->write($manifests);
|
$this->container['plugins.autoloader-generator']->write($manifests);
|
||||||
$output->writeln(" <comment>OK</comment>");
|
$output->writeln(" <comment>OK</comment>");
|
||||||
|
|
||||||
$output->writeln('Building LESS assets');
|
$output->write('Building LESS assets ...');
|
||||||
$this->container['phraseanet.less-builder']->build($this->container['phraseanet.less-mapping.customizable'], $output);
|
$this->container['phraseanet.less-builder']->build($this->container['phraseanet.less-mapping.customizable']);
|
||||||
|
$output->writeln(" <comment>OK</comment>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user