/** * 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; }