for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiapi\commands;
use hiapi\repositories\ActiveQuery;
class SearchHandler
{
public function handle(SearchCommand $command)
return $command->getRepository()->find($this->getQuery($command))->all();
}
public function getQuery(SearchCommand $command)
return new ActiveQuery($command->getRecordClass(), $command->getAttributes());