Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirement checker optimisations #195

Merged
merged 1 commit into from
May 3, 2018

Conversation

theofidry
Copy link
Member

- Add compactors to compress the PHP and JSON code
- Fix the licenses (Closes box-project#192)
- Bump the requirement checker on the library to ship box-project#185
@theofidry theofidry force-pushed the bugfix/requirement-checker branch from 69b91c6 to 6df63bf Compare May 3, 2018 22:57
@theofidry theofidry merged commit 1c79552 into box-project:master May 3, 2018
@theofidry theofidry deleted the bugfix/requirement-checker branch May 3, 2018 23:09
@@ -18,9 +18,10 @@
use Traversable;

/**
* The code in this file must be PHP 5.3+ compatible as is used to know if the application can be run.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does no longer need to be compatible with 5.3 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is but this applies to the whole requirement-checker component and it is specified in the composer.json: https://github.com/humbug/box/tree/master/requirement-checker

* @private
* @see \Symfony\Requirements\RequirementCollection
* @package symfony/requirements-checker
* @license MIT (c) Fabien Potencier <fabien@symfony.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the license file
https://github.com/symfony/requirements-checker/blob/master/LICENSE

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same way the license mention in the file points to the original LICENSE file, I'm referring to it there unless you consider it is not obvious enough and should also include the mention This source file is subject to the MIT license that is bundled with this source code in the file LICENSE. adjusted for this case.

But including the whole LICENSE file seems 1. overkill, 2. pollutes a lot the file and 3. really confusing as the file is not a 100% match with the original content.

There is an exception though as https://github.com/humbug/box/blob/master/requirement-checker/src/Terminal.php#L11 is a 100% match modulo some CS changes, I need to exclude the license change from PHP-CS-Fixer for this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants