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

@param OrganizationImage $image
Store an image as a file in a file system