Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow token from closure #16

Closed
bnomei opened this issue Jul 10, 2019 · 1 comment
Closed

allow token from closure #16

bnomei opened this issue Jul 10, 2019 · 1 comment
Assignees

Comments

@bnomei
Copy link

bnomei commented Jul 10, 2019

$this->token = option('sylvainjule.matomo.token');

if(is_callable($this->token)) {
  $this->token = $this->token();
}

to solve loading from .env file
https://forum.getkirby.com/t/unable-initialize-env-file/14877

@bnomei
Copy link
Author

bnomei commented Oct 30, 2019

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants