vendor/vich/uploader-bundle/src/Exception/MappingNotFoundException.php line 8

Open in your IDE?
  1. <?php
  2. namespace Vich\UploaderBundle\Exception;
  3. /**
  4.  * @final
  5.  */
  6. class MappingNotFoundException extends \RuntimeException implements VichUploaderExceptionInterface
  7. {
  8.     public static function createNotFoundForClassAndField(string $mappingstring $classstring $field): self
  9.     {
  10.         return new self(
  11.             \sprintf('Mapping "%s" does not exist. The configuration for the class "%s" is probably incorrect as the mapping to use for the field "%s" could not be found.'$mapping$class$field)
  12.         );
  13.     }
  14.     public static function createNotFoundForClass(string $mappingstring $class): self
  15.     {
  16.         if ('' === $mapping) {
  17.             return new self(
  18.                 \sprintf('Mapping not found. The configuration for the class "%s" is probably incorrect.'$class)
  19.             );
  20.         }
  21.         return new self(
  22.             \sprintf('Mapping "%s" does not exist. The configuration for the class "%s" is probably incorrect.'$mapping$class)
  23.         );
  24.     }
  25. }