Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix asset install relative option #27

Merged
merged 1 commit into from

2 participants

Charles Sanquer Fabien Potencier
Charles Sanquer

the assets:install --symlink option was missing when using composer extra option relative

Fabien Potencier fabpot referenced this pull request from a commit
Fabien Potencier fabpot merged branch csanquer/patch_assets_2 (PR #27)
Commits
-------

bd04094 fix asset install relative option
e78f65f Merge pull request #24 from fixe/patch-2
9580eeb $options['symfony-assets-install'] is a string, not a bool

Discussion
----------

fix asset install relative option

the assets:install --symlink option was missing when using composer extra option relative
f9b557c
Fabien Potencier fabpot merged commit bd04094 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 1, 2012
  1. Charles Sanquer
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 Composer/ScriptHandler.php
7 Composer/ScriptHandler.php
View
@@ -53,8 +53,11 @@ public static function installAssets($event)
$webDir = $options['symfony-web-dir'];
$symlink = '';
- if (in_array($options['symfony-assets-install'], array('symlink', 'relative'))) {
- $symlink = '--'.$options['symfony-assets-install'].' ';
+ if ($options['symfony-assets-install'] == 'symlink') {
+ $symlink = '--symlink ';
+ }
+ elseif ($options['symfony-assets-install'] == 'relative') {
+ $symlink = '--symlink --relative ';
}
if (!is_dir($webDir)) {
Something went wrong with that request. Please try again.