Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 2.6: Marked the ResolveParameterPlaceHoldersPassTest as legacy [ExpressionLanguage] fixed issues when parsing postfix expressions remove unused code do not inline service factories resolve class parameters in service factories [Serializer] Fix object normalization exceptions Conflicts: src/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php src/Symfony/Component/Serializer/Tests/Normalizer/PropertyNormalizerTest.php
- Loading branch information
Showing
12 changed files
with
185 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...mponent/DependencyInjection/Tests/Compiler/LegacyResolveParameterPlaceHoldersPassTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Tests\Compiler; | ||
|
||
use Symfony\Component\DependencyInjection\Compiler\ResolveParameterPlaceHoldersPass; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
|
||
/** | ||
* @group legacy | ||
*/ | ||
class LegacyResolveParameterPlaceHoldersPassTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testFactoryClassParametersShouldBeResolved() | ||
{ | ||
$this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED); | ||
|
||
$compilerPass = new ResolveParameterPlaceHoldersPass(); | ||
|
||
$container = new ContainerBuilder(); | ||
$container->setParameter('foo.factory.class', 'FooFactory'); | ||
$fooDefinition = $container->register('foo', '%foo.factory.class%'); | ||
$fooDefinition->setFactoryClass('%foo.factory.class%'); | ||
$compilerPass->process($container); | ||
$fooDefinition = $container->getDefinition('foo'); | ||
|
||
$this->assertSame('FooFactory', $fooDefinition->getFactoryClass()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters