-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Update example script to version stable ^2.0 #34
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your pull request. There are still a few issues to resolve.
@@ -18,7 +18,8 @@ | |||
use AbcAeffchen\SepaUtilities\SepaUtilities; | |||
use AbcAeffchen\Sephpa\SephpaDirectDebit; | |||
|
|||
require_once '../src/Sephpa.php'; | |||
chdir(dirname(__DIR__)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line seems to be unnecessary.
@@ -18,7 +18,8 @@ | |||
use AbcAeffchen\SepaUtilities\SepaUtilities; | |||
use AbcAeffchen\Sephpa\SephpaDirectDebit; | |||
|
|||
require_once '../src/Sephpa.php'; | |||
chdir(dirname(__DIR__)); | |||
require __DIR__ . '/../vendor/autoload.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vendor folder is not part of the repository. There should be a note, that is requires composer. Additionally a comment with instructions to use this without composer would be nice. This is basically using src/autoloader.php and SepaUtilities.php that needs to be downloaded separately.
I updated example.php script to work with stable ^2.0 versions.