Skip to content

Instantly share code, notes, and snippets.

@Neirda24
Last active March 28, 2025 14:47
Show Gist options
  • Save Neirda24/9432625b3e7436054e117a257ffc554f to your computer and use it in GitHub Desktop.
Save Neirda24/9432625b3e7436054e117a257ffc554f to your computer and use it in GitHub Desktop.
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://...')
composer require --dev symfony/test-pack
php bin/console make:test
WebTestCase Response createClient request assertResponseIsSuccessful
TestCase assertSame assertSelectorTextContains assertResponseStatusCodeSame assertPageTitleContains
composer require symfony/security-bundle
php bin/console security:hash-password
PasswordAuthenticatedUserInterface UserPasswordHasherInterface passwordHasher hashPassword
ROLE_ADMIN InteractiveLoginEvent Voter Security isGranted authenticationSuccessListener csrfTokenManager
composer require symfony/clock
Clock now format MockClock AsClock ClockInterface
DateTimeImmutable from Clock::get()->now()
MockClock('2013-05-13')
composer require symfony/asset-mapper
php bin/console asset-map:compile
php bin/console importmap:require bootstrap
import {Controller} from '@hotwired/stimulus'
import {Modal} from 'bootstrap'
block stylesheets asset('styles/app.css')
block javascripts importmap('app')
importmap:remove bootstrap asset-map:watch
Kernel ContainerBuilder AppKernel registerBundles registerContainerConfiguration CompilerPassInterface
MyCompilerPass process getDefinition addMethodCall AsTaggedItem MyService addTag
ServiceLocator ServiceSubscriberInterface configureRoutes registerCommands
composer require symfony/profiler-pack
php bin/console debug:router
php bin/console debug:autowiring
php bin/console debug:container --show-parameters
debug:event-dispatcher php bin/console cache:clear php bin/console about
composer require symfony/messenger
php bin/console messenger:setup-transports
MessageBusInterface dispatch MyMessage
transports async doctrine://default
routing App\Message\MyMessage
messenger:consume async
middleware log-messages retry-strategy failed-transport sync-transport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment