/** * Store an image as a file in a file system * * @param OrganizationImage $image */ public function store(OrganizationImage $image) { $resource = $image->getResource(); $path = $this->getImagePath($image); $this->createDirectoryRecursively(dirname($path)); file_put_contents($path, $resource); }