public function handle(Specification $spec)
    {
        $factory = $this->registry->getFactory($spec);

        return $factory->create($spec, $this->qb);
    }
public function handle(Specification $spec)
    {
        $factory = $this->registry->getFactory($spec);

        return $factory->create($spec, $this->qb);
    }
public function handle ( Specification $ spec ) { $ factory = $ this -> registry -> getFactory ( $ spec ) ; return $ factory -> create ( $ spec , $ this -> qb ) ; }
handle specification for queryfactory

@param Specification $spec

@return Base
handle specification for queryfactory