@@ -43,20 +43,23 @@ final class ComposerScripts
4343 */
4444 private static $ dependencies = [
4545 'kint-src ' => [
46- 'from ' => __DIR__ . '/../vendor/kint-php/kint/src/ ' ,
47- 'to ' => __DIR__ . '/ThirdParty/Kint/ ' ,
46+ 'license ' => __DIR__ . '/../vendor/kint-php/kint/LICENSE ' ,
47+ 'from ' => __DIR__ . '/../vendor/kint-php/kint/src/ ' ,
48+ 'to ' => __DIR__ . '/ThirdParty/Kint/ ' ,
4849 ],
4950 'kint-resources ' => [
5051 'from ' => __DIR__ . '/../vendor/kint-php/kint/resources/ ' ,
5152 'to ' => __DIR__ . '/ThirdParty/Kint/resources/ ' ,
5253 ],
5354 'escaper ' => [
54- 'from ' => __DIR__ . '/../vendor/laminas/laminas-escaper/src/ ' ,
55- 'to ' => __DIR__ . '/ThirdParty/Escaper/ ' ,
55+ 'license ' => __DIR__ . '/../vendor/laminas/laminas-escaper/LICENSE.md ' ,
56+ 'from ' => __DIR__ . '/../vendor/laminas/laminas-escaper/src/ ' ,
57+ 'to ' => __DIR__ . '/ThirdParty/Escaper/ ' ,
5658 ],
5759 'psr-log ' => [
58- 'from ' => __DIR__ . '/../vendor/psr/log/Psr/Log/ ' ,
59- 'to ' => __DIR__ . '/ThirdParty/PSR/Log/ ' ,
60+ 'license ' => __DIR__ . '/../vendor/psr/log/LICENSE ' ,
61+ 'from ' => __DIR__ . '/../vendor/psr/log/Psr/Log/ ' ,
62+ 'to ' => __DIR__ . '/ThirdParty/PSR/Log/ ' ,
6063 ],
6164 ];
6265
@@ -70,6 +73,10 @@ public static function postUpdate()
7073
7174 foreach (self ::$ dependencies as $ dependency ) {
7275 self ::recursiveMirror ($ dependency ['from ' ], $ dependency ['to ' ]);
76+ if (isset ($ dependency ['license ' ])) {
77+ $ license = basename ($ dependency ['license ' ]);
78+ copy ($ dependency ['license ' ], $ dependency ['to ' ] . '/ ' . $ license );
79+ }
7380 }
7481
7582 self ::copyKintInitFiles ();
0 commit comments