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

Instance of Closure given #16

Closed
AlexandreHagen opened this issue Feb 26, 2016 · 7 comments
Closed

Instance of Closure given #16

AlexandreHagen opened this issue Feb 26, 2016 · 7 comments

Comments

@AlexandreHagen
Copy link

Hi, since the last release I got this:

Type error: Argument 1 passed to LeagueFlysystemRackspaceRackspaceAdapter_XXXXX::__construct() must be an instance of OpenCloud\ObjectStore\Resource\Container, instance of Closure given, called in /var/www/demophonie/app/cache/dev/appDevDebugProjectContainer.php on line 6614

I tried alone to debug it but without results.
Have you any idea ?

I'm under Symfomy 2.8.2 and PHP7.0.2. From my point of view, issue is linked to dependency injection.

Thanks.

@frankdejonge
Copy link
Member

@AlexandreHagen are you using the 1up bundle?

@frankdejonge
Copy link
Member

Also, I think your assessment is correct. It looks like a service definition problem.

@AlexandreHagen
Copy link
Author

Yes I use 1up-lab/OneupFlysystemBundle. But I don't use 1up-lab/OneupUploaderBundle

Here what I'm using to file upload:

"oneup/flysystem-bundle": "1.3.0",
"league/flysystem-cached-adapter": "1.0.3",
"league/flysystem-rackspace": "1.0.4",
"vich/uploader-bundle": "0.14.0",

@frankdejonge
Copy link
Member

@AlexandreHagen did you file an issue with the @1up-lab people? If so, was it resolved there? /cc @bytehead

@bytehead
Copy link

bytehead commented Mar 9, 2016

@AlexandreHagen how does your configuration look like?
There are some other guys working with Rackspace (1up-lab/OneupFlysystemBundle#86), maybe this helps. Otherwise open a ticket at 1up-lab/OneupFlysystemBundle.

@AlexandreHagen
Copy link
Author

Problems solve! It was configuration issues in 1up-lab/OneupFlysystemBundle. I pass all lazy: true to lazy: false in configuration file (config.yml). Thanks for your help!

@frankdejonge
Copy link
Member

@bytehead ^ the previous comment might be interesting for you to dig into :)
@AlexandreHagen thanks for coming back and closing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants