Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Public Member Functions | List of all members
eZ\Publish\SPI\IO\MimeTypeDetector Interface Reference
Inheritance diagram for eZ\Publish\SPI\IO\MimeTypeDetector:

## Public Member Functions
| getFromPath ($path)
| Returns the MIME type of the file identified by $path. More...
| getFromBuffer ($buffer)
| Returns the MIME type of the data in $buffer. More...

## Detailed Description

Definition at line 9 of file MimeTypeDetector.php.

## Member Function Documentation

## ◆ getFromBuffer()

eZ\Publish\SPI\IO\MimeTypeDetector::getFromBuffer | ( |  | $buffer | ) |

Returns the MIME type of the data in $buffer.

Parameters

  string | $buffer |

Returns
  string

Implemented in eZ\Publish\Core\IO\MimeTypeDetector\FileInfo.

## ◆ getFromPath()

eZ\Publish\SPI\IO\MimeTypeDetector::getFromPath | ( |  | $path | ) |

Returns the MIME type of the file identified by $path.

Parameters

  string | $path |

Returns
  string

Implemented in eZ\Publish\Core\IO\MimeTypeDetector\FileInfo.

The documentation for this interface was generated from the following file:

- MimeTypeDetector.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.