public function register()
    {
        $guesser = MimeTypeGuesser::getInstance();

        $guesser->register(new RawImageMimeTypeGuesser());
        $guesser->register(new PostScriptMimeTypeGuesser());
        $guesser->register(new AudioMimeTypeGuesser());
        $guesser->register(new VideoMimeTypeGuesser());

        $guesser->register(new CustomExtensionGuesser($this->conf->get(['border-manager', 'extension-mapping'], [])));
    }
public function register()
    {
        $guesser = MimeTypeGuesser::getInstance();

        $guesser->register(new RawImageMimeTypeGuesser());
        $guesser->register(new PostScriptMimeTypeGuesser());
        $guesser->register(new AudioMimeTypeGuesser());
        $guesser->register(new VideoMimeTypeGuesser());

        $guesser->register(new CustomExtensionGuesser($this->conf->get(['border-manager', 'extension-mapping'], [])));
    }
public function register ( ) { $ guesser = MimeTypeGuesser :: getInstance ( ) ; $ guesser -> register ( new RawImageMimeTypeGuesser ( ) ) ; $ guesser -> register ( new PostScriptMimeTypeGuesser ( ) ) ; $ guesser -> register ( new AudioMimeTypeGuesser ( ) ) ; $ guesser -> register ( new VideoMimeTypeGuesser ( ) ) ; $ guesser -> register ( new CustomExtensionGuesser ( $ this -> conf -> get ( [ 'border-manager' , 'extension-mapping' ] , [ ] ) ) ) ; }
Registers mime type guessers given the configuration
Registers mime type guessers given the configuration