TransportFactoryInterface.php 719 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Mailer\Transport;
  11. use Symfony\Component\Mailer\Exception\IncompleteDsnException;
  12. use Symfony\Component\Mailer\Exception\UnsupportedSchemeException;
  13. /**
  14. * @author Konstantin Myakshin <molodchick@gmail.com>
  15. */
  16. interface TransportFactoryInterface
  17. {
  18. /**
  19. * @throws UnsupportedSchemeException
  20. * @throws IncompleteDsnException
  21. */
  22. public function create(Dsn $dsn): TransportInterface;
  23. public function supports(Dsn $dsn): bool;
  24. }