Skip to content

Commit

Permalink
Merge pull request #22 from wearemarketing/feature/fix-adapter
Browse files Browse the repository at this point in the history
Use microtime() instead of time() in route name prefix for avoiding b…
  • Loading branch information
juanjomb authored Aug 16, 2019
2 parents 7ff9e68 + 09aa5e1 commit d6e2e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/OrmAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function createAutoRoute(UriContext $uri, $autoRouteTag)
$routeNameParts[] = $autoRouteTag;
}

$routeNameParts[] = time();
$routeNameParts[] = str_replace('.', '', microtime(true));
$headRoute->setName(implode('_', $routeNameParts));

return $headRoute;
Expand Down

0 comments on commit d6e2e35

Please sign in to comment.