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

EZP-30543: Removed Dynamic Settings functionality from kernel #34

Closed
wants to merge 13 commits into from

Conversation

webhdx
Copy link
Contributor

@webhdx webhdx commented Apr 1, 2020

Question Answer
JIRA issue EZP-30543
Type improvement
Target eZ Platform version v3.0
BC breaks yes
Tests pass yes
Doc needed yes

I removed Dynamic Settings (functionality allowing to inject $my_param$ parameters resolved in current scope) as this was already broken after Symfony 4 migration.
One thing that I left is ComplexSettingParser - this allows to resolve configuration using dynamic settings i.e. IO using '%webroot_dir%/$var_dir$/$storage_dir$ values because those are injected as strings and resolved on demand inside OptionsProvider.

Checklist:

  • PR description is updated.
  • Tests are implemented.
  • Added code follows Coding Standards (use $ composer fix-cs).
  • PR is ready for a review.

@webhdx webhdx added the Improvement Changes not fixing or changing behavior label Apr 1, 2020
@webhdx webhdx self-assigned this Apr 1, 2020
@webhdx webhdx force-pushed the remove_dynamic_settings branch from 5eba974 to 772b0c9 Compare April 1, 2020 17:14
@webhdx webhdx force-pushed the remove_dynamic_settings branch from 772b0c9 to 4553eac Compare April 1, 2020 17:21
@webhdx webhdx marked this pull request as ready for review April 1, 2020 17:21
@webhdx webhdx changed the title EZP-30543: Remove Dynamic from kernel EZP-30543: Remove Dynamic Settings functionality from kernel Apr 1, 2020
/**
* @return \eZ\Publish\Core\MVC\ConfigResolverInterface|\PHPUnit\Framework\MockObject\MockObject
*/
protected function mockConfigResolver(): ConfigResolverInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
protected function mockConfigResolver(): ConfigResolverInterface
private function mockConfigResolver(): ConfigResolverInterface

eZ/Publish/Core/IO/ConfigScopeChangeAwareIOService.php Outdated Show resolved Hide resolved
@michal-myszka
Copy link
Contributor

Behat tests failed:
PHP Fatal error: Interface 'eZ\Publish\SPI\MVC\EventSubscriber\SiteAccessChangeSubscriber' not found in /var/www/vendor/ezsystems/ezplatform-kernel/eZ/Publish/Core/IO/Adapter/LocalAdapter.php on line 18
I can't find there this interface (SiteAccessChangeSubscriber) both here and on the master branch

@webhdx webhdx changed the title EZP-30543: Remove Dynamic Settings functionality from kernel EZP-30543: Removed Dynamic Settings functionality from kernel Apr 1, 2020
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

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

Good direction!

Nitpicks:

@webhdx
Copy link
Contributor Author

webhdx commented Apr 1, 2020

Closed in favor of #35

@webhdx webhdx closed this Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Changes not fixing or changing behavior
Development

Successfully merging this pull request may close these issues.

4 participants