Plugins are great but they are never what you exactly wanted. When they are designed properly, the best way to customize them is to extend them instead of directly editing them. Now, imagine I have:1 # Penguin.class.php class Penguin { public function __construct() { echo "Windows is bad\n"; } } # Herd.class.php class Herd [...]
Monthly Archives: June 2009
Extending plugins in PHP and Symfony
Posted in PHP, Symfony Tagged autoloading, inheritance, monkeypatching, PHP, plugins, Symfony Leave a comment