forked from avadev/Avalara-AvaTax-for-Magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.php
30 lines (26 loc) · 1022 Bytes
/
registration.php
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
<?php
/**
* @codeCoverageIgnore
*/
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'ClassyLlama_AvaTax',
__DIR__
);
if (defined('BP')) {
// This path will work when extension is installed via composer or via manual installation
$vendorPath = BP . DIRECTORY_SEPARATOR . 'vendor';
} else {
// This path will work when extension is being run in the context of integration tests, where BP is not defined
$vendorPath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..';
}
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::LIBRARY,
'Avalara_AvaTax',
$vendorPath . DIRECTORY_SEPARATOR . 'avalara' . DIRECTORY_SEPARATOR . 'avataxclient'
);
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Avalara_BaseProvider',
__DIR__ . DIRECTORY_SEPARATOR . 'BaseProvider'
);