Skip to content

Instantly share code, notes, and snippets.

View Neirda24's full-sized avatar
🍺
🍺

Adrien Roches Neirda24

🍺
🍺
View GitHub Profile
@Neirda24
Neirda24 / src\Rector\AddFormInterfaceGenericToTwigComponentWithFormRector.php
Created April 24, 2025 12:24
Rector rule to add the `@return FormInterface<TData>` on twig component with form trait on method `instantiateForm`
<?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;
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()