-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathBoSearch.php
More file actions
55 lines (50 loc) · 2.26 KB
/
BoSearch.php
File metadata and controls
55 lines (50 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*************************************************************************************/
/* This file is part of the Thelia package. */
/* */
/* Copyright (c) OpenStudio */
/* email : dev@thelia.net */
/* web : http://www.thelia.net */
/* */
/* For the full copyright and license information, please view the LICENSE.txt */
/* file that was distributed with this source code. */
/*************************************************************************************/
namespace BoSearch;
use Symfony\Component\DependencyInjection\Loader\Configurator\ServicesConfigurator;
use Thelia\Core\Template\TemplateDefinition;
use Thelia\Module\BaseModule;
class BoSearch extends BaseModule
{
const DOMAIN_NAME = 'bosearch';
const PARSED_DATA = 'parsedData';
public function getHooks()
{
return [
[
'code' => 'bosearch.customer-search.form',
'type' => TemplateDefinition::BACK_OFFICE,
'active' => true,
'title' => [
'en_US' => 'Extend customer search form',
'fr_FR' => 'Étend le formulaire de recherche de clients'
]
],
[
'code' => 'bosearch.order-search.form',
'type' => TemplateDefinition::BACK_OFFICE,
'active' => true,
'title' => [
'en_US' => 'Extend order search form',
'fr_FR' => 'Étend le formulaire de recherche de commandes'
]
]
];
}
public static function configureServices(ServicesConfigurator $servicesConfigurator): void
{
$servicesConfigurator->load(self::getModuleCode().'\\', __DIR__)
->exclude([THELIA_MODULE_DIR . ucfirst(self::getModuleCode()). "/I18n/*"])
->autowire(true)
->autoconfigure(true);
}
}