pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
882 stars 138 forks source link

Argument 1 passed to Instagram\Api::__construct() must be an instance of Psr\Cache\CacheItemPoolInterface, instance of Symfony\Component\Cache\Adapter\FilesystemAdapter given #224

Closed haigooner95 closed 3 years ago

haigooner95 commented 3 years ago

T got this error, can you help me @pgrimaud ?

pgrimaud commented 3 years ago

What is your code ?

haigooner95 commented 3 years ago

$cachePool = new FilesystemAdapter('Instagram', 0, DIR . '/../cache'); $this->login_session = new Api($cachePool);

haigooner95 commented 3 years ago

i followed your usage

pgrimaud commented 3 years ago

Did you require the good namespace?

use Symfony\Component\Cache\Adapter\FilesystemAdapter;

haigooner95 commented 3 years ago

Did you require the good namespace?

use Symfony\Component\Cache\Adapter\FilesystemAdapter;

yes, i did.

pgrimaud commented 3 years ago

Could you paste the entire file where you're using this package?

Are you using 6.x version?

Are you in Symfony environment or other framework?

haigooner95 commented 3 years ago

I'm using Laravel 7, and 6x version of this package. I'm using this in a queue job

pgrimaud commented 3 years ago

Which version of symfony/cache are you using?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.