$ # Depending on your terminal (sh, bash, zsh) it may display errors or warning. But it will work ;)
$ source ./functions.sh
$ php --version # execute php inside the container and accept any arguments
$ dev # execute the symfony console on dev mode and accept any arguments
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
| symfony 20 years thank-you community fabulous people SymfonyCon Amsterdam November 2025 | |
| Kernel ContainerBuilder AppKernel registerBundles ParamConverter Route annotations Live jobeet registerContainerConfiguration CompilerPassInterface process getDefinition | |
| php bin/console importmap:require response client request withOptions setBaseUri block importmap asset-map:compile AssetMapper StreamedResponse StreamedJsonResponse CircularReferenceException Parameters.ini.dist propel | |
| messenger:setup-transports MessageBusInterface dispatch transports doctrine routing Collection LiveAction messenger:consume retry-strategy failed-transport sync-transport stimulus_controller data-controller data-action data-target Api-Platform deps.lock | |
| SensioLabs SensioFrameworkExtraBundle flex doctrine/orm Composer Packagist Monolog Twig Blackfire Platform.sh Upsun SymfonyInsight SymfonyCasts KnpUniversity Webpack MakerBundle doctrine:fixtures:load make:controller make:entity Turbo Hotwire doctrine/dbal sfContext::getInstance() |
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 | |
| declare(strict_types=1); | |
| namespace Utils\Rector\Rector; | |
| use PhpParser\Comment\Doc; | |
| use PhpParser\Node; | |
| use PhpParser\Node\Stmt\Class_; | |
| use PhpParser\Node\Stmt\TraitUse; |
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 | |
| declare(strict_types=1); | |
| namespace Utils\Rector\Rector; | |
| use PhpParser\Comment\Doc; | |
| use PhpParser\Node; | |
| use PhpParser\Node\Stmt\Class_; | |
| use PhpParser\Node\Expr\Array_; |
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
| composer require symfony/type-info | |
| composer require symfony/json-encoder | |
| composer require symfony/emoji | |
| composer require symfony/asset-mapper symfony/asset symfony/twig-pack | |
| block importmap('app') | |
| php bin/console asset-map:compile | |
| php bin/console importmap:require bootstrap | |
| $response $this->client->request('GET','https://...') | |
| $this->client $client->withOptions (HttpOptions())->setBaseUri('https://...') |
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
| services: | |
| nginx: | |
| networks: | |
| traefik: | |
| aliases: | |
| - 'local.app' | |
| labels: | |
| traefik.enable: 'true' | |
| traefik.http.services.myapp.loadbalancer.server.port: '80' | |
| traefik.http.routers.myapp.rule: 'Host(`local.app`)' |
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
| #!/usr/bin/env bash | |
| ## --------------- | |
| ## Setup | |
| ## --------------- | |
| CURRENT_BASH=$(ps -p $$ | tail -n 1 | awk '{ print $4 }' | perl -pe 's#.*[-/](\w)#$1#'); | |
| case "${CURRENT_BASH}" in | |
| zsh) | |
| CURRENT_DIR=$(cd "$(dirname "${0}")" && pwd); | |
| ;; |
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
| NGROK_AUTH=My_auth_token |
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
| FROM scratch as app | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod +x docker-entrypoint.sh | |
| FROM whatever |
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 | |
| class OverrideFosRestServicesPass implements CompilerPassInterface | |
| { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function process(ContainerBuilder $container) | |
| { | |
| if ($container->hasDefinition('fos_rest.exception_listener')) { |
NewerOlder