<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="robots" content="index, follow, all" />
        <title>Symfony\Component\HttpFoundation\File\MimeType\ContentTypeMimeTypeGuesser | </title>
                    <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css">
                            </head>
        <body id="class">
            <div class="header">
        <ul>
            <li><a href="../../../../../classes.html">Classes</a></li>
                            <li><a href="../../../../../namespaces.html">Namespaces</a></li>
                        <li><a href="../../../../../interfaces.html">Interfaces</a></li>
            <li><a href="../../../../../traits.html">Traits</a></li>
            <li><a href="../../../../../doc-index.html">Index</a></li>
            
        </ul>

        <div id="title"></div>

            <div class="type">Class</div>
    <h1><a href="../MimeType.html">Symfony\Component\HttpFoundation\File\MimeType</a>\ContentTypeMimeTypeGuesser</h1>
    </div>
        <div class="content">
                <p>    class
    <strong>ContentTypeMimeTypeGuesser</strong>        implements
        <a href="MimeTypeGuesserInterface.html"><abbr title="Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface">MimeTypeGuesserInterface</abbr></a></p>

            <div class="description">
            <p>Guesses the mime type using the PHP function mime<em>content</em>type().</p>
            <p>
</p>
        </div>
    
    
    
            <h2>Methods</h2>

            <table>
                    <tr>
                <td class="type">
                    static&nbsp;Boolean
                </td>
                <td class="last">
                    <a href="ContentTypeMimeTypeGuesser.html#method_isSupported">isSupported</a>()
                    <p>Returns whether this guesser is supported on the current OS/PHP setup</p>
                </td>
                <td></td>
            </tr>
                    <tr>
                <td class="type">
                    string
                </td>
                <td class="last">
                    <a href="ContentTypeMimeTypeGuesser.html#method_guess">guess</a>(string $path)
                    <p>Guesses the mime type of the file with the given path</p>
                </td>
                <td></td>
            </tr>
            </table>


        <h2>Details</h2>

                        <h3 id="method_isSupported">
        <div class="location">at line 29</div>
        <code>        static    public            Boolean
    <strong>isSupported</strong>()</code>
    </h3>
    <div class="details">
        <p>Returns whether this guesser is supported on the current OS/PHP setup</p>
        <p>
</p>
        <div class="tags">
            
                            <h4>Return Value</h4>

                    <table>
        <tr>
            <td>Boolean</td>
            <td>
</td>
        </tr>
    </table>

            
            
                    </div>
    </div>

                <h3 id="method_guess">
        <div class="location">at line 39</div>
        <code>            public            string
    <strong>guess</strong>(string $path)</code>
    </h3>
    <div class="details">
        <p>Guesses the mime type of the file with the given path</p>
        <p>
</p>
        <div class="tags">
                            <h4>Parameters</h4>

                    <table>
                    <tr>
                <td>string</td>
                <td>$path</td>
                <td>The path to the file</td>
            </tr>
            </table>

            
                            <h4>Return Value</h4>

                    <table>
        <tr>
            <td>string</td>
            <td>The mime type or NULL, if none could be guessed</td>
        </tr>
    </table>

            
            
                            <h4>See also</h4>

                    <table>
                    <tr>
                <td>MimeTypeGuesserInterface::guess()</td>
                <td></td>
            </tr>
            </table>

                    </div>
    </div>

    
            </div>
                <div id="footer">
        Generated by <a href="http://sami.sensiolabs.org/" target="_top">Sami, the API Documentation Generator</a>.
    </div>

    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-89393-6']);
        _gaq.push(['_setDomainName', '.symfony.com']);
        _gaq.push(['_trackPageview']);

        (function() {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
    </body>
</html>
