getSize() public method

public getSize ( )
コード例 #1
0
 protected function generateBinaryResponse($path, $extraHeaders = [])
 {
     $body = new Stream($path);
     return new Response($body, 200, ArrayUtils::merge(['Content-Type' => (new \finfo(FILEINFO_MIME))->file($path), 'Content-Length' => (string) $body->getSize()], $extraHeaders));
 }