for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* Licensed under MIT. See file /LICENSE.
*/
namespace App\Factory;
use App\Service\MailerTestTransport;
use Symfony\Component\Mailer\Transport\AbstractTransportFactory;
use Symfony\Component\Mailer\Transport\Dsn;
use Symfony\Component\Mailer\Transport\TransportInterface;
final class MailerTestTransportFactory extends AbstractTransportFactory
{
public function create(Dsn $dsn): TransportInterface
return new MailerTestTransport();
}
protected function getSupportedSchemes(): array
return ['testonly'];