File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * integer_net Magento Module
4+ *
5+ * @category IntegerNet
6+ * @package IntegerNet_Solr
7+ * @copyright Copyright (c) 2016 integer_net GmbH (http://www.integer-net.de/)
8+ * @author Fabian Schmengler <fs@integer-net.de>
9+ */
10+
11+ /**
12+ * This rewrite fixes the Iways_PayPalPlus autoloader to work nicely together with other third party autoloaders,
13+ * i.e. without warnings.
14+ */
15+ class IntegerNet_Solr_Helper_Autoloader_PayPalPlus extends Iways_PayPalPlus_Model_Autoloader
16+ {
17+ /**
18+ * Autoload
19+ *
20+ * @param string $class
21+ */
22+ public function autoload ($ class )
23+ {
24+ $ classFile = str_replace ('\\' , DS , $ class ) . '.php ' ;
25+ // Actually check if file exists in include path, do nothing otherwise
26+ if (stream_resolve_include_path ($ classFile ) !== false ) {
27+ include $ classFile ;
28+ }
29+ }
30+ }
Original file line number Diff line number Diff line change 3939 <layer_filter_category >IntegerNet_Solr_Model_Catalog_Layer_Filter_Category</layer_filter_category >
4040 </rewrite >
4141 </catalog >
42+
43+ <iways_paypalplus >
44+ <rewrite >
45+ <autoloader >IntegerNet_Solr_Helper_Autoloader_PayPalPlus</autoloader >
46+ </rewrite >
47+ </iways_paypalplus >
4248 </models >
4349
4450 <blocks >
You can’t perform that action at this time.
0 commit comments