protected function load($source)
    {
        $reader = new FileReader($source);

        $dictionary = new MimeTypeDictionary($reader);

        foreach ($dictionary as $entry) {
            $this->dict += array_fill_keys(
                $entry->fileExtensions,
                $entry->mimeType
            );
        }
    }
protected function load($source)
    {
        $reader = new FileReader($source);

        $dictionary = new MimeTypeDictionary($reader);

        foreach ($dictionary as $entry) {
            $this->dict += array_fill_keys(
                $entry->fileExtensions,
                $entry->mimeType
            );
        }
    }
protected function load ( $ source ) { $ reader = new FileReader ( $ source ) ; $ dictionary = new MimeTypeDictionary ( $ reader ) ; foreach ( $ dictionary as $ entry ) { $ this -> dict += array_fill_keys ( $ entry -> fileExtensions , $ entry -> mimeType ) ; } }
Load the Apache mime.types file.

@param string $source Local or remote location of the mime.types file.
@return void
Load the Apache mime . types file .