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

Add autoloader to allow manual installation and update documentation #96

Merged
merged 8 commits into from
Dec 26, 2014
Merged

Add autoloader to allow manual installation and update documentation #96

merged 8 commits into from
Dec 26, 2014

Conversation

orlitzky
Copy link
Contributor

This is the fix we discussed in #93. Each of the commits should be self-contained and have a descriptive commit message, so I would look at the individual commits to make review easier. If you have any questions let me know!

…tion.

The custom autoloader created by this commit translates class
names into filesystem locations by a simple rule: it replaces
backslashes with frontslashes, and adds ".php" on the end. Two
locations are searched for this class implementation file: first we
check under lib/, then under test/.

The existing test/bootstrap.php checked for vendor/autoload.php and
would show an error to the user if it did not exist. Now that we have
our own autoloader, we can just use that instead. So, test/bootstrap.php
was removed, and phpunit.xml.dist was pointed at the new lib/autoload.php
for its bootstrap code.

Thanks to Artur Weigandt for the implementation of the autoloader.
@kbsali
Copy link
Owner

kbsali commented Dec 20, 2014

Awesome! Really appreciate those commits clearly separated, it made the reviewing process dead easy!
I made a few comments, i'll merge once they are addressed.
Thanks @orlitzky !

@Art4
Copy link
Collaborator

Art4 commented Dec 22, 2014

Nice 👍

* Use four spaces for indentation of "if" statements.
* Add a space between parenthesis and braces, e.g. if (foo) {...
* Remove spaces around the string concatenation operator (dot). This
  is consistent with its usage in Redmine/Client.php.
@orlitzky
Copy link
Contributor Author

Ok, I added two more commits to address your comments. The code style fixer thing suggested that I remove whitespace around the dot operator and you've done that in Client.php, so I did that too.

kbsali added a commit that referenced this pull request Dec 26, 2014
Add autoloader to allow manual installation and update documentation
@kbsali kbsali merged commit afff2c8 into kbsali:master Dec 26, 2014
@kbsali kbsali mentioned this pull request Dec 26, 2014
@Art4 Art4 mentioned this pull request Jun 5, 2021
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.

3 participants