Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Unfuck Open Source

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Unfuck Open Source

Symfony Live 2025 Berlin - Lightning Talk

Avatar for Silas Joisten

Silas Joisten

April 07, 2025

More Decks by Silas Joisten

Other Decks in Technology

Transcript

  1. WE SUPPORT YOUR NEEDS → PHP 1 Docker Image →

    Twig "eval" extension → Auto tune loader → Template bundle
  2. BURDEN OF OSS → Using final keyword on classes and

    methods → Visibility private , protected → Type declarations, return types and typed properties → Usage of the harsh readonly → Improving runtime
  3. 1 // ... 2 final class Example 3 { 4

    private readonly string $foo; 5 6 public function __construct(string $foo) 7 { 8 $this->foo = $foo; 9 } 10 11 private function getFoo(): string 12 { 13 return $this->foo; 14 } 15 }
  4. 1 // ... 2 $inst = new class extends Example{};

    3 $inst->foo = 42; 4 5 var_dump($inst->getFoo());
  5. THIS WILL HOOK INTO THE RUNTIME TO GET RID OF

    ALL THAT PAINFUL LIMITATIONS AND GIVE YOU ALL THAT FREEDOM TO SHOOT YOURSELF IN THE FOOT, BACK OR HEAD THE WAY YOU DESIRE THE MOST.