Trying to override sfPHPView I created a file named module.yml on apps/myapp/config and filled it with:
all:
view_class: dom
I wanted to provide the custom view class file (domView.class.php) from my app, but sfController->getView() looks for it only on %SF_SYMFONY_LIB_DIR%/view and crashes symfony.
I think it's impractical to mess with symfony files when I want to implement a customization for this app only.
As a workaround I made an autoload.yml rule for my custom class and removed some verification code from sfController.class.php (I'll post the patch) so it just autoload it.
I'd love to see a better solution for this problem. Thanks.