Skip to content

Commit

Permalink
feat: Complete refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmolinacano committed Oct 8, 2024
1 parent ee7a86b commit 40fc988
Show file tree
Hide file tree
Showing 6 changed files with 699 additions and 624 deletions.
5 changes: 4 additions & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use PrestaShop\Module\Doofinder\Lib\DfTools;
use PrestaShop\Module\Doofinder\Lib\DoofinderConfig;
use PrestaShop\Module\Doofinder\Lib\DoofinderConstants;

$root_path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
$config_file_path = $root_path . '/config/config.inc.php';
Expand All @@ -26,6 +27,8 @@
require_once dirname(__FILE__) . '/../../init.php';
}

require_once 'autoloader.php';

if (!defined('_PS_VERSION_')) {
exit;
}
Expand Down Expand Up @@ -87,7 +90,7 @@
'version' => _PS_VERSION_,
],
'module' => [
'version' => Doofinder::VERSION,
'version' => DoofinderConstants::VERSION,
'feed' => $base . $shop->getBaseURI() . 'modules/doofinder/feed.php',
'options' => [
'language' => $languages,
Expand Down
Loading

0 comments on commit 40fc988

Please sign in to comment.