Got an example : Zend\Mvc\Router\Http\TreeRouteStack::match(Request $request, $pathOffset = null, array $options = array())

line 257 : $baseUrlLength = strlen($this->baseUrl) ?: null;

Maybe we should use baseUrl instead of basePath ?