Skip to content

Commit efc1bca

Browse files
authored
Merge pull request #5506 from kenjis/add-license-files
chore: add third party license files
2 parents 8e3f9e0 + 3a03e45 commit efc1bca

4 files changed

Lines changed: 78 additions & 6 deletions

File tree

system/ComposerScripts.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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();
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2020 Laminas Project a Series of LF Projects, LLC.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
- Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
- Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
- Neither the name of Laminas Foundation nor the names of its contributors may
14+
be used to endorse or promote products derived from this software without
15+
specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
21+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

system/ThirdParty/Kint/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Jonathan Vollebregt (jnvsor@gmail.com), Rokas Šleinius (raveren@gmail.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

system/ThirdParty/PSR/Log/LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2012 PHP Framework Interoperability Group
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

0 commit comments

Comments
 (0)