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

Use MediaManagerInterface in DynamicController #300

Merged
merged 1 commit into from
Sep 10, 2021
Merged

Use MediaManagerInterface in DynamicController #300

merged 1 commit into from
Sep 10, 2021

Conversation

plozmun
Copy link
Contributor

@plozmun plozmun commented Sep 10, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets -
Related issues/PRs -
License MIT

What's in this PR?

I have MediaManager decorated but DynamicController is not using MediaManagerInterface and cause this error:

 Sulu\Bundle\FormBundle\Controller\DynamicController::__construct(): Argument #3 ($mediaManager) must be of type Sulu\Bundle\MediaBundle\Media\Manager\MediaManager

Why?

Use interfaces when possible

I have MediaManager decorated but DynamicController is not using MediaManagerInterface and cause this error:
```
 Sulu\Bundle\FormBundle\Controller\DynamicController::__construct(): Argument #3 ($mediaManager) must be of type Sulu\Bundle\MediaBundle\Media\Manager\MediaManager
```
@plozmun
Copy link
Contributor Author

plozmun commented Sep 10, 2021

ping @alexander-schranz 😄

@alexander-schranz alexander-schranz merged commit a9904bc into sulu:2.x Sep 10, 2021
@alexander-schranz
Copy link
Member

@plozmun Thank you!

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

Successfully merging this pull request may close these issues.

2 participants