jimmyin21 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Multiple Google_ActivitiesServiceResource #373

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load src/contrib/Google_PlusService.php
2. Load src/contrib/Google_YouTubeService.php
3. PHP Fatal error:  Cannot redeclare class Google_ActivitiesServiceResource in 
...

What is the expected output? What do you see instead?
No crash

What version of the product are you using? On what operating system?
0.6.4

Please provide any additional information below.
It's using the same name class for multiple services. If you want to use it at 
the same time it's not possible.

Original issue reported on code.google.com by marc...@gmail.com on 20 Aug 2013 at 4:46

GoogleCodeExporter commented 8 years ago
Also with class Google_Activity

Original comment by marc...@gmail.com on 20 Aug 2013 at 5:00

GoogleCodeExporter commented 8 years ago
Can you please let us know if there is an update on this issue? Is there a hack 
anywhere?

Original comment by dpraskum...@gmail.com on 5 Sep 2013 at 2:48

GoogleCodeExporter commented 8 years ago
For the next major release of the lib we're resolving the naming so this 
doesn't happen (hopefully we should be able to have an alpha of that available 
within the next few weeks) - there isn't a great workaround at the moment other 
than just renaming the conflicting classes. 

Original comment by ianbar...@google.com on 5 Sep 2013 at 2:55

GoogleCodeExporter commented 8 years ago
Is there already a fix available? I have the same issue.

Original comment by i...@webteilchen.de on 8 Nov 2013 at 1:31

GoogleCodeExporter commented 8 years ago
Comment class declaration and don't use the object export.

Original comment by marc...@gmail.com on 8 Nov 2013 at 8:07

GoogleCodeExporter commented 8 years ago
We are also in alpha on a new version of the library that has non-clashing 
names guaranteed: https://github.com/google/google-api-php-client/ - could take 
a look at that. 

Original comment by ianbar...@google.com on 8 Nov 2013 at 8:11

GoogleCodeExporter commented 8 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:53