File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
Config/Model/Config/Backend
WebapiSecurity/Model/Plugin Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,14 @@ class Cache extends \Magento\Framework\App\Config\Value
2222 /**
2323 * Clean cache, value was changed
2424 *
25- * @return void
25+ * @return $this
2626 */
2727 public function afterSave ()
2828 {
2929 if ($ this ->isValueChanged ()) {
3030 $ this ->_cacheManager ->clean ($ this ->_cacheTags );
3131 }
32+
33+ return $ this ;
3234 }
3335}
Original file line number Diff line number Diff line change 1414class Datashare extends \Magento \Framework \App \Config \Value
1515{
1616 /**
17- * @return void
17+ * @return $this
1818 */
1919 public function afterSave ()
2020 {
21+ return $ this ;
2122 }
2223}
Original file line number Diff line number Diff line change 88class IncludePrice extends \Magento \Framework \App \Config \Value
99{
1010 /**
11- * @return void
11+ * @return $this
1212 */
1313 public function afterSave ()
1414 {
15- parent ::afterSave ();
15+ $ result = parent ::afterSave ();
1616 $ this ->_cacheManager ->clean (['checkout_quote ' ]);
17+
18+ return $ result ;
1719 }
1820}
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ public function afterAfterSave(
3434 \Magento \Framework \App \Config \Value $ subject ,
3535 \Magento \Framework \App \Config \Value $ result
3636 ) {
37- if ($ result ->getPath () == \Magento \WebapiSecurity \Model \Plugin \AnonymousResourceSecurity::XML_ALLOW_INSECURE
38- && $ result ->isValueChanged ()
37+ if ($ subject ->getPath () == \Magento \WebapiSecurity \Model \Plugin \AnonymousResourceSecurity::XML_ALLOW_INSECURE
38+ && $ subject ->isValueChanged ()
3939 ) {
4040 $ this ->cacheTypeList ->invalidate (\Magento \Framework \App \Cache \Type \Webapi::TYPE_IDENTIFIER );
4141 }
You can’t perform that action at this time.
0 commit comments