Skip to content

Issue #2869333 by agoradesign: Move store context from PriceDefaultFo…#713

Merged
bojanz merged 1 commit intodrupalcommerce:8.x-2.xfrom
agoradesign:cleanup_price_default_formatter
Apr 20, 2017
Merged

Issue #2869333 by agoradesign: Move store context from PriceDefaultFo…#713
bojanz merged 1 commit intodrupalcommerce:8.x-2.xfrom
agoradesign:cleanup_price_default_formatter

Conversation

@agoradesign
Copy link
Copy Markdown
Contributor

…rmatter to PriceCalculatedFormatter

parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings, $entity_type_manager, $number_formatter_factory);

$this->chainPriceResolver = $chain_price_resolver;
$this->storeContext = $store_context;
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.

This isn't being injected anymore. The constructor lists it but you did not override the parent create method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The parent create() method is already overridden anyway (and of course already containing the store context)

@mglaman mglaman dismissed their stale review April 13, 2017 14:26

I'm a dolt

@bojanz bojanz merged commit 5742c44 into drupalcommerce:8.x-2.x Apr 20, 2017
bradjones1 pushed a commit to bradjones1/commerce that referenced this pull request May 4, 2017
nikathone pushed a commit to nikathone/commerce that referenced this pull request Feb 2, 2018
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.

3 participants