This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// portal/src/Symfony | |
# could have been portal/src/Portal/Common/Infrastructure/Symfony but I got lazy | |
namespace Portal\Common\Infrastructure\Symfony; | |
use Portal\Common\Infrastructure\Symfony\DependencyInjection\AppContextExtension; | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | |
# I suppose SymfonyBundle might be a better name | |
class PortalBundle extends Bundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//AppKernel.php | |
class AppKernel extends Kernel | |
{ | |
//... | |
protected function build(ContainerBuilder $container) | |
{ | |
$container->registerExtension(new \Portal\Common\Infrastructure\Symfony\DependencyInjection\AppExtension()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function getContainerExtensionClass() | |
{ | |
$basename = preg_replace('/Bundle$/', '', $this->getName()); | |
return $this->getNamespace().'\\DependencyInjection\\'.$basename.'Extension'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.immigration.interieur.gouv.fr/fr/Info-ressources/Demarches/Formulaires-Cerfa/Les-travailleurs-etrangers/Formulaire-n-15187-1-Demande-d-autorisation-de-travail-pour-conclure-un-contrat-de-travail-avec-un-salarie-etranger-residant-hors-de-France |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1:6379> KEYS * | |
1) "messages" | |
127.0.0.1:6379> lrange messages 0 -1 ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#.env | |
ENQUEUE_DSN=redis://redis:6379 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .env | |
ENQUEUE_DSN=sqs:?secret=[AWSSecretKey]&key=[AWSAccessKey]region=[region] | |
# messenger.yml | |
framework: | |
messenger: | |
transports: | |
sqs: enqueue://default?&topic[name]=test&queue[name]=test | |
routing: | |
'App\Message\SendNotification': sqs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#config.yml | |
swiftmailer: | |
url: '%env(MAILER_URL)%' | |
# spool: ~ | |
#.env | |
MAILER_URL=smtp://maildev:25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[unix_http_server] | |
file=/tmp/supervisor.sock | |
[supervisord] | |
logfile=/tmp/supervisord.log | |
pidfile=/var/run/supervisord.pid | |
nodaemon=true | |
[program:php-fpm] | |
command = /usr/local/sbin/php-fpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
framework: | |
messenger: | |
transports: | |
amqp: '%env(MESSENGER_TRANSPORT_DSN)%' | |
routing: | |
'App\Message\SendNotification': amqp |