/** * Gets the 'stof_doctrine_extensions.uploadable.manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Stof\DoctrineExtensionsBundle\Uploadable\UploadableManager A Stof\DoctrineExtensionsBundle\Uploadable\UploadableManager instance. */ protected function getStofDoctrineExtensions_Uploadable_ManagerService() { $a = new \Gedmo\Uploadable\UploadableListener(new \Stof\DoctrineExtensionsBundle\Uploadable\MimeTypeGuesserAdapter()); $a->setAnnotationReader($this->get('annotation_reader')); $a->setDefaultFileInfoClass('Stof\\DoctrineExtensionsBundle\\Uploadable\\UploadedFileInfo'); return $this->services['stof_doctrine_extensions.uploadable.manager'] = new \Stof\DoctrineExtensionsBundle\Uploadable\UploadableManager($a, 'Stof\\DoctrineExtensionsBundle\\Uploadable\\UploadedFileInfo'); }
/** * Gets the 'stof_doctrine_extensions.listener.uploadable' service. * * This service is shared. * This method always returns the same instance of the service. * * This service is private. * If you want to be able to request this service from the container directly, * make it public, otherwise you might end up with broken code. * * @return \Gedmo\Uploadable\UploadableListener A Gedmo\Uploadable\UploadableListener instance. */ protected function getStofDoctrineExtensions_Listener_UploadableService() { $this->services['stof_doctrine_extensions.listener.uploadable'] = $instance = new \Gedmo\Uploadable\UploadableListener(new \Stof\DoctrineExtensionsBundle\Uploadable\MimeTypeGuesserAdapter()); $instance->setAnnotationReader($this->get('annotation_reader')); $instance->setDefaultFileInfoClass('Stof\\DoctrineExtensionsBundle\\Uploadable\\UploadedFileInfo'); $instance->setDefaultPath($this->targetDirs[2] . '/../web/fichier'); return $instance; }