New Symfony Tips and Tricks
summary
Shows concrete, usable tips: use Request::getInt/getBoolean instead of casting strings; let Doctrine map names with the naming strategy and use resolve_target_entities to make an entity relate to different concrete classes; Doctrine 2.5 accepts ArrayCollection in WHERE IN and enables use_savepoints to rollback inner transactions; Composer’s exclude-from-classmap keeps test classes out of optimized autoloads; Monolog supports custom channels and formatters; ConsoleStyle gives one-liner titles and tables.
AI-written summary · about
chapters (39)
- 0:00Introduction and thanks
- 1:06Mini tips on request parameters
- 2:08Doctrine naming strategies
- 3:13Abstract relationships in Doctrine
- 5:40Doctrine 2.5 improvements
- 6:24Default table options in Doctrine
- 7:05Safe points in Doctrine transactions
- 8:09Optional Symfony controller elements
- 9:15Template checks for old Symfony versions
- 9:55Composer performance optimization
- 10:38Excluding classes from class map
- 11:19Deprecated Twig filters
- 12:43Checking defined Twig blocks
- 13:06Variadic Twig filters
- 14:31Getting Twig template source code
- 15:14Email redirection in development
- 15:55Whitelisting emails in dev
- 16:20Environment variables in Symfony
- 18:05Runtime environment variables issue
- 18:46Credentials file alternative
- 19:52Monolog underused features
- 20:56Custom Monolog channels
- 21:16Custom Monolog formatters
- 22:42Monolog plugins and handlers
- 23:23New Symfony web debug toolbar
- 24:50Customizing debug toolbar panels
- 25:51Removing debug toolbar panels
- 26:15Security success handlers
- 27:38PHPUnit test improvements
- 27:58Better PHPUnit error messages
- 28:39Generating data providers
- 29:20PHPUnit annotations
- 30:03PHPUnit risky test checks
- 30:46PHPUnit bridge deprecation stack traces
- 31:50Smoke testing Symfony services
- 32:53Verifying service instantiation speed
- 33:58Console component style guide
- 35:00Symfony console styling shortcuts
- 37:38Q&A session
