Proyectos de Subversion LeadersLinked - Services

Rev

Rev 808 | Rev 810 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 808 Rev 809
Línea 123... Línea 123...
123
            }
123
            }
Línea 124... Línea 124...
124
            
124
            
125
            $storageFileMapper = \LeadersLinked\Mapper\StorageFileMapper::getInstance($this->adapter);
125
            $storageFileMapper = \LeadersLinked\Mapper\StorageFileMapper::getInstance($this->adapter);
Línea 126... Línea 126...
126
            $storageFile = $storageFileMapper->fetchOneByCode($code);
126
            $storageFile = $storageFileMapper->fetchOneByCode($code);
127
            
127
            
Línea 128... Línea 128...
128
            $storageDir = $this->config['leaderslinked.storage.path'] ?? null;
128
            $storageDir = $this->config['leaderslinked.storage.path'];
Línea 129... Línea 129...
129
            $storageFileFullPath = $storageDir ? $storageDir . DIRECTORY_SEPARATOR . $storageFile->path : $storageFile->path;
129
            $storageFileFullPath = $storageDir . DIRECTORY_SEPARATOR . $storageFile->path;
Línea 170... Línea 170...
170
                } else {
170
                } else {
171
                    return $this->getResponse()->setStatusCode(404);
171
                    return $this->getResponse()->setStatusCode(404);
172
                }
172
                }
Línea 173... Línea 173...
173
      
173
      
-
 
174
            } else {
174
            } else {
175
                $this->logger->err('StorageFile not found: ' . $storageFileFullPath);
175
                return $this->getResponse()->setStatusCode(404);
176
                return $this->getResponse()->setStatusCode(404);
Línea 176... Línea 177...
176
            }
177
            }
177
        
178