-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathModuleConfig.cfc
More file actions
28 lines (24 loc) · 932 Bytes
/
ModuleConfig.cfc
File metadata and controls
28 lines (24 loc) · 932 Bytes
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
component {
this.title = 'CF Magento 2';
this.author = 'Gary Stanton';
this.webURL = '';
this.description = 'Magento2 CFML is a CFML (Lucee and ColdFusion) library for interacting with the Magento2 API. Borrows heavily from John Berquist''s Stripe CFML project.';
/**
* apiKey is required, but note that it can be set via a Java system property
* or environment variables instead of being passed in at init.
* See README.md for the config struct options - these can also be set via
* system properties or environment variables if desired.
*/
function configure() {
settings = {
apiKey = '',
config = { }
};
}
function onLoad() {
binder.map( 'magento@magento2cfml' )
.to( '#moduleMapping#.magento' )
.asSingleton()
.initWith( apiKey = settings.apiKey, config = settings.config );
}
}