Pheasant::finderFor PHP 메소드

finderFor() 공개 메소드

Looks up a finder for either an object or a classname
public finderFor ( $subject ) : Finder
리턴 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];
    }