public function store(BinaryInterface $binary, $path, $filter)
    {
        $tmpFile = tmpfile();
        fwrite($tmpFile, $binary->getContent());
        $tmpMetadata = stream_get_meta_data($tmpFile);

        $binaryCreateStruct = $this->ioService->newBinaryCreateStructFromLocalFile($tmpMetadata['uri']);
        $binaryCreateStruct->id = $this->getFilePath($path, $filter);
        $this->ioService->createBinaryFile($binaryCreateStruct);

        fclose($tmpFile);
    }
public function store(BinaryInterface $binary, $path, $filter)
    {
        $tmpFile = tmpfile();
        fwrite($tmpFile, $binary->getContent());
        $tmpMetadata = stream_get_meta_data($tmpFile);

        $binaryCreateStruct = $this->ioService->newBinaryCreateStructFromLocalFile($tmpMetadata['uri']);
        $binaryCreateStruct->id = $this->getFilePath($path, $filter);
        $this->ioService->createBinaryFile($binaryCreateStruct);

        fclose($tmpFile);
    }
public function store ( BinaryInterface $ binary , $ path , $ filter ) { $ tmpFile = tmpfile ( ) ; fwrite ( $ tmpFile , $ binary -> getContent ( ) ) ; $ tmpMetadata = stream_get_meta_data ( $ tmpFile ) ; $ binaryCreateStruct = $ this -> ioService -> newBinaryCreateStructFromLocalFile ( $ tmpMetadata [ 'uri' ] ) ; $ binaryCreateStruct -> id = $ this -> getFilePath ( $ path , $ filter ) ; $ this -> ioService -> createBinaryFile ( $ binaryCreateStruct ) ; fclose ( $ tmpFile ) ; }
Stores image alias in the IO Repository.
A temporary file is created to dump the filtered image and is used as basis for creation in the IO Repository.

{@inheritdoc}
Stores image alias in the IO Repository . A temporary file is created to dump the filtered image and is used as basis for creation in the IO Repository .