Skip to content
Snippets Groups Projects
Commit 7df13c05 authored by David Maus's avatar David Maus
Browse files

ltrim handler URI

parent 3dd412f4
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ class Search implements CommandInterface
public function __construct ($handler, QueryBuilderInterface $builder = null)
{
$this->handler = $handler;
$this->handler = ltrim($handler, '/');
$this->builder = $builder ?: new QueryBuilder();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment