private function dispatchImagesInfo($urls)
    {
        if (empty($urls)) {
            return [];
        }

        $requests = [];

        foreach ($urls as $url) {
            $requests[] = Url::create($url);
        }

        return array_map(
            function (ImageResponse $response) {
                return [
                    'url' => (string) $response->getUrl(),
                    'width' => $response->getWidth(),
                    'height' => $response->getHeight(),
                    'size' => $response->getWidth() * $response->getHeight(),
                    'mime' => $response->getContentType(),
                ];
            },
            $this->getDispatcher()->dispatchImages($requests)
        );
    }
private function dispatchImagesInfo($urls)
    {
        if (empty($urls)) {
            return [];
        }

        $requests = [];

        foreach ($urls as $url) {
            $requests[] = Url::create($url);
        }

        return array_map(
            function (ImageResponse $response) {
                return [
                    'url' => (string) $response->getUrl(),
                    'width' => $response->getWidth(),
                    'height' => $response->getHeight(),
                    'size' => $response->getWidth() * $response->getHeight(),
                    'mime' => $response->getContentType(),
                ];
            },
            $this->getDispatcher()->dispatchImages($requests)
        );
    }
private function dispatchImagesInfo ( $ urls ) { if ( empty ( $ urls ) ) { return [ ] ; } $ requests = [ ] ; foreach ( $ urls as $ url ) { $ requests [ ] = Url :: create ( $ url ) ; } return array_map ( function ( ImageResponse $ response ) { return [ 'url' => ( string ) $ response -> getUrl ( ) , 'width' => $ response -> getWidth ( ) , 'height' => $ response -> getHeight ( ) , 'size' => $ response -> getWidth ( ) * $ response -> getHeight ( ) , 'mime' => $ response -> getContentType ( ) , ] ; } , $ this -> getDispatcher ( ) -> dispatchImages ( $ requests ) ) ; }
Get images info.

@param array $urls

@return array
Get images info .