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

Call to undefined method CachedConfigCollection::setPool() #6737

Closed
phptek opened this issue Mar 26, 2017 · 3 comments
Closed

Call to undefined method CachedConfigCollection::setPool() #6737

phptek opened this issue Mar 26, 2017 · 3 comments

Comments

@phptek
Copy link

phptek commented Mar 26, 2017

PHP 5.6.3 / framework 4.0.0-alpha5 installed via composer and silverstripe/installer 4.0.0-alpha5.

4.0.0-alpha5 requires "silverstripe/config" ^1.0.0@alpha which gets us 1.0.0-alpha7. Neither of 1.0.0-alpha7 or dev-master contains the setPool() method in CachedConfigCollection. The last sighting of setPool() was in 1.0.0-alpha6 and as such framework:4.0.0-alpha5 fails to dev/build with a non-existent cache-dir. (rm -rf /tmp/silverstripe-cache*) beforehand.

@dhensby
Copy link
Contributor

dhensby commented Mar 26, 2017

Does the error still occur with framework 4.0.x-dev?

@tractorcow
Copy link
Contributor

Sorry @phptek we broke the API after alpha5. alpha7 changed the api to use psr-16 cache api.

You can fix this by adding this to your root composer.

"silverstripe/config": "1.0.0-alpha6",

I'll change the release behaviour to fix to tags "as-release" instead of allowing loose version comparison, at least until 4.0.0 stable is out.

@tractorcow
Copy link
Contributor

Fix at silverstripe/silverstripe-installer#162

Unfortunately it won't retroactively fix alpha5 release, but at least alpha6 will be functional.

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

No branches or pull requests

3 participants