All Posts with Category: 'Protips'

How to Export any Symfony Route to PDF

Use a Symfony Listener to export any route to PDF with no additional controller code.

Symfony Quirks with Doctrine Inheritance and Unique Constraints

How to make sure your base entity's unique constraints are handled how you would expect.

Symfony Setter Injection and Parent Class Dependencies

Dealing with dependency absence in child class constructors.

Finding a Real-World Use Case for Setter Injection in Symfony

Despite being my least preferred method of injection, I discover a tangible reason for its use.

Add Programmer Excuses to Your Eggdrop Bot

Display an excuse from programmerexcuses.com to your channel.

Automatically Set Bundle Configuration Container Parameters in Symfony

Instead of having to manually set every configurable container parameter for your bundle, let a few lines of code do it for you automatically.

Set Bundle Configuration Defaults with YAML in Symfony

Configure your bundle default values in YAML instead of PHP, just like how you override them in your applications.

How to Incorporate WordPress Network-Wide Menus

Use a plugin to reuse multiple menus across your WordPress network.

Be Careful with Doctrine Magic and Symfony

Eager loading on nullable joined columns may cause unexpected behavior while editing entities with Symfony2 forms.