-
Notifications
You must be signed in to change notification settings - Fork 93
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
Unable to Update Subscriptions using 2.5.* in Laravel 5.1 #253
Comments
I'm sure the authors of this library will add namespacing at some point, but why would you need to alter the library with namespaces to be compatible with Laravel? Using the standard Autoloading via Composer should allow you access to the Recurly classes directly or through the Laravel DI container. |
There were issues with the heavy dependencies between classes and some There is a PSR4-compliant version of the library, that someone made a pull On Jul 25, 2016 8:35 AM, "Cyrus Collier" notifications@github.com wrote:
|
i just noticed https://packagist.org/packages/digital-canvas/recurly-client-laravel i'm not sure if it's up to date or what though. |
That package was implemented for Laravel 4.1/4.2 whereas my project is in On Aug 1, 2016 12:12 PM, "andrew morton" notifications@github.com wrote:
|
I am trying to update Subscriptions dynamically using the Recurly PHP Library under the Laravel 5.1 Framework. Since the library isn't designed with PSR-4 in mind, I had to add namespacing to the tops of each of the library files in order to reference them appropriately.
I believe that this might affect the behavior of the library, but as you can see in the below error, the context that the private method is being called from is the context of the Class itself the private method belongs to.
Error thrown:
This is an example of the modifications I made to the class files included in the Recurly PHP Client.
I can successfully use the library to generate subscriptions, but any time I try to update those subscriptions, I get this FatalErrorException thrown by PHP, and thrown by the same class I exampled above.
It seems that for some reason, the Recurly_Base class cannot access it's own private method addLink.
I attempted to resolve the issue by weakening the Visibility of all Recurly_Base methods and values so that the 'private'-ness of addLink wouldn't matter, but the FatalErrorException was still thrown.
The text was updated successfully, but these errors were encountered: