PHP code example of jrbarros / symfony-kinghost-mailer
1. Go to this page and download the library: Download jrbarros/symfony-kinghost-mailer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jrbarros / symfony-kinghost-mailer example snippets
declare(strict_types=1);
use JrBarros\Mailer\Bridge\KingHost\Transport\KingHostTransportFactory;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
// outros serviços
$services->set(KingHostTransportFactory::class)
->tag('mailer.transport_factory');
};