Skip to content
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

CacheClearerInterface not found #81

Closed
dangraetzer opened this issue Jun 18, 2012 · 11 comments · Fixed by #82
Closed

CacheClearerInterface not found #81

dangraetzer opened this issue Jun 18, 2012 · 11 comments · Fixed by #82
Assignees

Comments

@dangraetzer
Copy link

@sixty-nine made some changes recently to the cache clearer. are they dependent on Symfony 2.1? I'm on 2.0.12 and am getting the following error.

Fatal error: Interface 'Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface' not found in /xxx/vendor/bundles/Liip/ImagineBundle/Imagine/Cache/CacheClearer.php on line 13

My deps are the following:

[Imagine]
    git=http://github.com/avalanche123/Imagine.git
    target=imagine
    version=v0.2.0

[LiipImagineBundle]
    git=http://github.com/liip/LiipImagineBundle.git
    target=bundles/Liip/ImagineBundle

Thanks

@sixty-nine
Copy link

I am sorry, didn't check that but indeed Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface comes from Symfony 2.1.

@lsmith do you have an idea how to best solve this issue?

Meanwhile @dangraetzer you'll have to use the previous commit tag. Sorry for that.

@lsmith77
Copy link
Contributor

I guess we should register the service dynamically with a version check similar to:
https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/DependencyInjection/FOSRestExtension.php#L44

@ghost ghost assigned sixty-nine Jun 18, 2012
@dangraetzer
Copy link
Author

@sixty-nine what should my deps file look like?

@sixty-nine
Copy link

You can fix the version by specifying the commit number in your deps like this:

[LiipImagineBundle]
git=http://github.com/liip/LiipImagineBundle.git
target=bundles/Liip/ImagineBundle
version=af69ffeb020a8b32c86dc37d8724f791dfa09ce5

af69ffe being the ID of the commit you want to use.

@cdfre
Copy link

cdfre commented Jun 19, 2012

I'm using Symfony 2.0.15 with composer.
Could you please create a tag / branch for a working 2.0 version?

@lsmith77
Copy link
Contributor

like i said .. the best fix is to just make the registration of the cache clearer depend on the Symfony version being used .. should be easy to fix .. someone just needs to write the patch and send a PR

@sixty-nine
Copy link

I assigned this ticket to myself and will fix it as soon as I find some free time (i.e. not right now).
Meanwhile if someone wants to jump into it, please feel free ;-)

@digitalkaoz
Copy link
Contributor

i would like to see branches if the master is developed against 2.1...

should be the easiest thing...ran into the same issue right now :/

@lsmith77
Copy link
Contributor

why branches if all it takes is an if statement to keep it all in sync. anyway i will fix it tomorrow if Dan doesnt get to it before me. but sometimes i really wonder about OSS users.

@digitalkaoz
Copy link
Contributor

you got me with "oss users" ;)

@sixty-nine
Copy link

oss users can be great ;-)

thanks @digitalkaoz

frodosghost pushed a commit to frodosghost/LiipImagineBundle that referenced this issue Jul 10, 2012
fixed liip#81 cache clearer only registered for sf2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants