MissingDependency.php 447 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Exception;
  4. use RuntimeException;
  5. final class MissingDependency extends RuntimeException implements DependencyException
  6. {
  7. public static function noEntityManager(): self
  8. {
  9. return new self('The entity manager is not available.');
  10. }
  11. public static function noSchemaProvider(): self
  12. {
  13. return new self('The schema provider is not available.');
  14. }
  15. }