Check if PHP has the YAML extension first before falling back to the Symfony2 YAML parser