-
Notifications
You must be signed in to change notification settings - Fork 177
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
S6 : How to call OrphanageManager #428
Comments
Why not? Missing autoconfiguration/autowiring? |
When I'm trying to inject Here my conf : # Read the documentation: https://github.com/1up-lab/OneupUploaderBundle/blob/master/Resources/doc/index.md
oneup_uploader:
mappings:
# This is a mapping example, remove it and create your own mappings.
gallery:
#use_orphanage: true
frontend: dropzone # or any uploader you use in the frontend
storage:
directory: "%kernel.project_dir%/public/uploads/gallery/"
use_orphanage: true
chunks:
maxage: 86400 # 24h
storage:
directory: "%kernel.cache_dir%/uploader/chunks"
orphanage:
maxage: 86400 # 24h
directory: "%kernel.cache_dir%/uploader/orphanage"
Should I add something to my services.yaml ? |
Thanks for the feedback, I'll try to provide a fix! 👍 |
As a temporary fix you could add following to your # config/services.yaml
services:
# ...
# Alias
Oneup\UploaderBundle\Uploader\Orphanage\OrphanageManager: "@oneup_uploader.orphanage_manager"
# ... |
Question
Hello, following the controller part from orphanage doc, i'm trying to acces to the OrphanageManager :
$manager = $this->get('oneup_uploader.orphanage_manager')->get('gallery');
However,
$this->get('')
not existing on AbstractController on Symfony6, and I cannot use DependencyInjection withOneup\UploaderBundle\Uploader\Orphanage\OrphanageManager
How can I call the manager with S6 ?
Thnaks
The text was updated successfully, but these errors were encountered: