Pheasant::finderFor PHP Method

finderFor() public method

Looks up a finder for either an object or a classname
public finderFor ( $subject ) : Finder
return Finder
    public function finderFor($subject)
    {
        $class = $this->initialize($subject);
        if (!isset($this->_finders[$class])) {
            throw new Exception("No finder registered for {$class}");
        }
        return $this->_finders[$class];
    }