src/Subjects/FileResolver/SimpleFileResolver.php
public function shouldBeHandled($filename)
    {

        // initialize the array with the matches
        $matches = array();

        // update the matches, if the pattern matches
        if ($result = preg_match($this->preparePattern(), $filename, $matches)) {
            foreach ($matches as $name => $match) {
                $this->addMatch($name, $match);
            }
        }

        // stop processing, if the filename doesn't match
        return (boolean) $result;
    }
public function shouldBeHandled($filename)
    {

        // initialize the array with the matches
        $matches = array();

        // update the matches, if the pattern matches
        if ($result = preg_match($this->preparePattern(), $filename, $matches)) {
            foreach ($matches as $name => $match) {
                $this->addMatch($name, $match);
            }
        }

        // stop processing, if the filename doesn't match
        return (boolean) $result;
    }
Queries whether or not, the passed filename should be handled by the subject.

@param string $filename The filename to query for

@return boolean TRUE if the file should be handled, else FALSE