code: public function executeFor(Route $route): bool
      {
          if (null === $this->pathConstraint) {
              return true;
          }
  
          return strpos($route->getPath(), $this->pathConstraint) === 0;
      }
docs: Checks if this item should be executed for a given Route
  
  @param Route $route
  
  @return bool