symfony/symfony — pull request #6123 by kylecannon (2012-11-26 20:20:17+00:00)
Title: [DI] Strip New Lines and Whitespace for multi-line XML Parameters for Class Initialization

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
License of the code: MIT
Documentation PR: -

The main purpose of this patch is when formatting your parameters in an XML configuration to use multiple lines due to the long length.

Example:

KC\Bundle\MediaBundle\DependencyInjection\Factory\Credential\AwsCredentialFactory

May be reformatted into the following in PHPStorm:

KC\Bundle\MediaBundle\DependencyInjection\Factory\Credential\AwsCredentialFactory

After reformatting, you would get the following error:

ReflectionException: Class
KC\Bundle\MediaBundle\DependencyInjection\Factory\Credential\AwsCredentialFactory
does not exist

By stripping the new lines and trimming the white space will allow the proper initialization of the class .