Commit d19bdb0 1 parent 607e6a1 commit d19bdb0 Copy full SHA for d19bdb0
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
use Symfony \Component \Process \Process ;
14
14
use Symfony \Component \Process \PhpExecutableFinder ;
15
15
use Composer \Script \Event ;
16
-
16
+ use Symfony \ Component \ HttpKernel \ Kernel ;
17
17
/**
18
18
* ScriptHandler
19
19
*
@@ -36,14 +36,17 @@ class ScriptHandler
36
36
*/
37
37
private static $ options = [
38
38
'symfony-app-dir ' => 'app ' ,
39
- 'symfony-web-dir ' => 'web ' ,
39
+ 'symfony-web-dir ' => (Kernel:: VERSION_ID < 40000 ? 'web ' : ' public ' ) ,
40
40
];
41
41
42
42
protected static function getOptions (Event $ event )
43
43
{
44
44
$ options = array_merge (self ::$ options , $ event ->getComposer ()->getPackage ()->getExtra ());
45
45
46
- $ options ['symfony-assets-install ' ] = getenv ('SYMFONY_ASSETS_INSTALL ' ) ?: $ options ['symfony-assets-install ' ];
46
+ if (Kernel::VERSION_ID < 40000 )
47
+ {
48
+ $ options ['symfony-assets-install ' ] = getenv ('SYMFONY_ASSETS_INSTALL ' ) ?: $ options ['symfony-assets-install ' ];
49
+ }
47
50
48
51
$ options ['process-timeout ' ] = $ event ->getComposer ()->getConfig ()->get ('process-timeout ' );
49
52
You can’t perform that action at this time.
0 commit comments