MimeTypeGuesser::guess()

string guess(string $path) Tries to guess the mime type of the given file. The file is passed to each registered mime type guesser in reverse order of their registration (last registered is queried first). Once a guesser returns a value that is not NULL, this method terminates and returns the value. Parameters string $path The path to the file Return Value string The mime type or NULL, if none could be guessed Exceptions LogicException FileNotFoundException AccessDeniedExcept

MimeTypeGuesser::getInstance()

static MimeTypeGuesser getInstance() Returns the singleton instance. Return Value MimeTypeGuesser

MimeTypeGuesser

class MimeTypeGuesser implements MimeTypeGuesserInterface A singleton mime type guesser. By default, all mime type guessers provided by the framework are installed (if available on the current OS/PHP setup). You can register custom guessers by calling the register() method on the singleton instance. Custom guessers are always called before any default ones. $guesser = MimeTypeGuesser::getInstance(); $guesser->register(new MyCustomMimeTypeGuesser()); If you want to change the order of the

MimeTypeExtensionGuesser

class MimeTypeExtensionGuesser implements ExtensionGuesserInterface Provides a best-guess mapping of mime type to file extension. Methods string guess(string $mimeType) Makes a best guess for a file extension, given a mime type. Details string guess(string $mimeType) Makes a best guess for a file extension, given a mime type. Parameters string $mimeType The mime type Return Value string The guessed extension or NULL, if none could be guessed

MicroKernelTrait::registerContainerConfiguration()

registerContainerConfiguration(LoaderInterface $loader) {@inheritdoc} Parameters LoaderInterface $loader

MicroKernelTrait::loadRoutes()

loadRoutes(LoaderInterface $loader) Parameters LoaderInterface $loader

MicroKernelTrait

trait MicroKernelTrait A Kernel that provides configuration hooks. Methods registerContainerConfiguration(LoaderInterface $loader) {@inheritdoc} loadRoutes(LoaderInterface $loader) Details registerContainerConfiguration(LoaderInterface $loader) {@inheritdoc} Parameters LoaderInterface $loader loadRoutes(LoaderInterface $loader) Parameters LoaderInterface $loader

MethodNotImplementedException deprecated

class MethodNotImplementedException extends MethodNotImplementedException deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\Exception\MethodNotImplementedException} instead. Alias of {@link \Symfony\Component\Intl\Exception\MethodNotImplementedException}. Constants INTL_INSTALL_MESSAGE Methods __construct(string $methodName) Constructor. from MethodNotImplementedException Details __construct(string $methodName

MethodNotImplementedException

class MethodNotImplementedException extends NotImplementedException Constants INTL_INSTALL_MESSAGE Methods __construct(string $methodName) Constructor. Details __construct(string $methodName) Constructor. Parameters string $methodName The name of the method

MethodNotAllowedHttpException

class MethodNotAllowedHttpException extends HttpException MethodNotAllowedHttpException. Methods __construct(array $allow, $message = null, Exception $previous = null, $code) Constructor. int getStatusCode() Returns the status code. from HttpException array getHeaders() Returns response headers. from HttpException Details __construct(array $allow, $message = null, Exception $previous = null, $code) Constructor. Parameters array $allo