2023-04-10 15:36:59 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2017-09-30 00:40:45 +00:00
|
|
|
export function initialize() {
|
|
|
|
const application = arguments[1] || arguments[0];
|
|
|
|
|
|
|
|
// Provides the acl token service to all templates
|
|
|
|
application.inject('controller', 'token', 'service:token');
|
|
|
|
application.inject('component', 'token', 'service:token');
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'app-token',
|
|
|
|
initialize,
|
|
|
|
};
|