$salesChannel = $this->findSalesChannel($request); if($salesChannel === null){ // this class and therefore the "isSalesChannelRequired" method is currently not extendable
// which can cause problems when adding custom paths
thrownewSalesChannelMappingException($request->getUri()); }