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

Ability to inject the authorization URL through the constructor #3

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

jefersonralmeida
Copy link
Contributor

I've just added the $urlAuthorize property as a optional constructor parameter.

It fixes this issue.

* @param array $collaborators
* @param string $urlAuthorize Base url for authorization.
*/
public function __construct(array $options = [], array $collaborators = [], string $urlAuthorize = 'https://login.microsoftonline.com')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just letting clear that this syntax could be much cleaner, using constructor property promotion, but I saw that the package composer file requires support to PHP 7 (property promotion is only supported by php 8.x).

@greew
Copy link
Owner

greew commented Mar 12, 2024

Great - thanks! 😃

Just need to break the constructor properties up into single lines to conform to the PHP CodeSniffer rules.

When that's fixed, I'll merge it!

@jefersonralmeida
Copy link
Contributor Author

It's done @greew , sorry for the delay, I was out on a trip last week.

@jefersonralmeida
Copy link
Contributor Author

Hey @greew , can we merge it?

@greew greew merged commit 7a00467 into greew:main Apr 3, 2024
4 checks passed
@greew
Copy link
Owner

greew commented Apr 3, 2024

Yeah - Thank you for your work! 😊

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

Successfully merging this pull request may close these issues.

2 participants