Skip to content

Add recommendations#285

Merged
theofidry merged 11 commits into
box-project:masterfrom
theofidry:feature/add-recommendations
Oct 7, 2018
Merged

Add recommendations#285
theofidry merged 11 commits into
box-project:masterfrom
theofidry:feature/add-recommendations

Conversation

@theofidry
Copy link
Copy Markdown
Member

@theofidry theofidry commented Oct 4, 2018

Closes #123

  • Rename auto-discovery to force-autodiscovery
  • Access to the stdClass instance properties of the raw configuration via constants for the keys instead of arbitrary strings
  • Add recommendations when a configuration setting is set to null or the default value. The recommendation being that the setting can be completely ignored
  • Remove a few new InvalidArgumentException() statements with their respective TODOs in favour of relying on Assertion from baberlei/assert

@theofidry theofidry force-pushed the feature/add-recommendations branch from a103df1 to 06740e4 Compare October 6, 2018 09:50
@theofidry theofidry changed the title [WIP] Add recommendations Add recommendations Oct 6, 2018
@theofidry
Copy link
Copy Markdown
Member Author

/cc @keradus

@theofidry theofidry merged commit a3a1ec6 into box-project:master Oct 7, 2018
@theofidry theofidry deleted the feature/add-recommendations branch October 7, 2018 09:35
Comment thread doc/configuration.md
### Force auto-discovery (`auto-discovery`)
### Force auto-discovery (`force-autodiscovery`)

The `auto-discovery` (`bool` default `false`) setting forces Box to attempt to find which files to include even though
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

shall be renamed as well?

change of input name (CLI param, param in config file) is a BC breaker

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Indeed should be renamed.

It is indeed a BC break but this is fine since it was on master but not released yet

Comment thread src/Configuration.php
private const PHP_SCOPER_CONFIG = 'scoper.inc.php';
private const DEFAULT_SIGNING_ALGORITHM = Phar::SHA1;

private const ALGORITHM_KEY = 'algorithm';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would suggest to put them into separated, non-instanceable class, or use prefix (instead of suffix) for easier distinguishability

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I still have mixed feelings about it as well to be honest, but for now I think I prefer to keep it as it is

? Removing the Composer dump artefacts
? No compression
? Setting file permissions to 0755
? Setting file permissions to 0754
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

out of curiosity,
why the change ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because I wanted to configure the chmod still but not raising a recommendation (it was the case here since the value set was the same as the default one)

@theofidry
Copy link
Copy Markdown
Member Author

Thanks for the review @keradus :)

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