Configuration of the Mavryx Symfony Bundle
Structure of configuration files
/config
dev/mavryx.yaml // Dev version
test/mavryx.yaml // Test version
mavryx.yaml // Live version
The bundle is configured by default to use the production version.
parameters:
mavryx:
config:
exceptions: false //This flag determines how the library should handle errors, whether to throw exceptions in case of errors or return NULL, false in case of an error.
endpoints:
OAuth2: "auth.mavryx.solutions"
authentication:
uri: "https://auth.mavryx.software/oauth2/signin?client_id={client_id}&response_type={response_type}&state={state}&redirect_uri={redirect_uri}"
credentials: // Your app credentials
client_id: "0000575c-0000-0000-0000-d56700680000"
client_secret: "SECRET"
redirect_uri: "https://YOUR_APP_DOMAN.COM/authenticate"
response_type: "code"
To work in the dev or test environment, set up the configuration file as follows.
For dev version create a file dev/mavryx.yaml
parameters:
mavryx:
config:
exceptions: true
endpoints:
OAuth2: "auth-dev.mavryx.solutions"
For test version create a file test/mavryx.yaml
parameters:
mavryx:
config:
exceptions: true
endpoints:
OAuth2: "auth-test.mavryx.solutions"