Closed PierreGranger closed 3 months ago
@PierreGranger Hi, thanks for your comment. I think the forks you linked to have gone missing from your comment?
I'm open to a pull request that updates the composer.json file to a workable set of dependencies. I'm pretty sure that config and yaml in sf5/6 still work like they did in 3, so if there is a loader fork that supports all of them i can put it in the composer.json. As a workaround you can probably put a repository in your composer.json to replace the gimler loader package?
Oops sorry, i updated the links in the initial commit.
Thanks for your reply. Tbh i don't know how can i force the use of a gimler replacer, as it's not a direct dependancy on my project ?
This one looks the most recent : arthur.kirkosa/guzzle-description-loader
but the last update may be a bit excessive :
"symfony/config": "*",
"symfony/yaml": "*"
Also he did not pushed a tagued release with the last edits on packagist.
My use of toggl API was really light (I just needed to retrieve time entries) so i've switched to a simple http call, in my case it will be enough.
Thanks for your read
@PierreGranger thanks for the update.
Hi there!
@PierreGranger, I was facing the same issue, so I install dependencies manually, including arthurkirkosa from here: https://packagist.org/packages/arthurkirkosa/guzzle-description-loader
After that, I modify the composer.lock including the data of the package, but changing the dependencies:
{
"name": "ajt/guzzle-toggl",
"type": "library",
"version": "1.3.0",
"source": {
"type": "git",
"url": "https://github.com/arendjantetteroo/guzzle-toggl",
"reference": "857ed9454425b1c76980b13fd2f8d18f2b914625"
},
"description": "Toggl API client written on top of Guzzle PHP.",
"keywords": ["toggl", "ajt", "api", "guzzle"],
"homepage": "http://github.com/arendjantetteroo/guzzle-toggl",
"license": "MIT",
"authors": [
{
"name": "Arend-Jan Tetteroo",
"homepage": "http://www.arendjantetteroo.nl"
}
],
"require": {
"guzzlehttp/guzzle": "^7.3",
"guzzlehttp/guzzle-services": "^1.2",
"arthurkirkosa/guzzle-description-loader": "^0.0.7"
},
"autoload": {
"psr-0": {"AJT": "src/"}
}
}
After that just run composer install
. It seems it works fine.
By the way, I was facing another issut when I try to execute $workspaces = $toggl_client->getWorkspaces(array());
it returns:
There was an error executing the GetWorkspaces command: Warning: curl_setopt_array(): Cannot represent a stream of type Output as a STDIO FILE*
.
Trying thigs I discover it is caused by 'debug'=>true
put in here TogglClient::factory();
. Just to mention it.
Have a nice day!
It seems this is the most recent/maintained version of the loader: https://github.com/Inveniem/guzzle-description-loader
As the old one is still on symfony 3, it might be time to upgrade to this one instead.
Hello,
I'm having troubles trying to use this in a recent project, because the dependance on
gimler/guzzle-description-loader
is too limitative : https://github.com/gimler/guzzle-description-loader/blob/master/composer.jsongimler/guzzle-description-loader
has not been updated since 2015, and can cause problmes for any symfony project with config or yaml in versions upper than 3.0.Here are the logs i'm getting :
Some forks of gimler/guzzle-description-loader update the composer.json dependancies : https://github.com/arthurkirkosa/guzzle-description-loader https://github.com/scs-ben/guzzle-description-loader
Regards,