Skip to content

Commit 72f62d3

Browse files
committed
Merge branch '6142/paypalplus' into develop
2 parents f845560 + 91d2a7e commit 72f62d3

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

src/app/code/community/IntegerNet/Solr/etc/config.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
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>

0 commit comments

Comments
 (0)