10000 Fix a typo and add a check to prevent regressions · symfony/symfony@7437832 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7437832

Browse files
committed
Fix a typo and add a check to prevent regressions
1 parent b26ff03 commit 7437832

File tree

4 files changed

+73
-1
lines changed

4 files changed

+73
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
998998
$cacheMetadataFactory = new Definition(
999999
CacheClassMetadataFactory::class,
10001000
array(
1001-
new Reference('serializer.mapping.class_metadata_factory.inner'),
1001+
new Reference('serializer.mapping.cache_class_metadata_factory.inner'),
10021002
new Reference('cache.pool.serializer'),
10031003
)
10041004
);
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional;
13+
14+
/**
15+
* Checks that the container compiles correctly when all the bundle features are enabled.
16+
*/
17+
class ContainerDumpTest extends WebTestCase
18+
{
19+
public function testContainerCompilationInDebug()
20+
{
21+
$client = $this->createClient(array('test_case' => 'ContainerDump', 'root_config' => 'config.yml'));
22+
23+
$this->assertTrue($client->getContainer()->has('serializer'));
24+
}
25+
26+
public function testContainerCompilation()
27+
{
28+
$client = $this->createClient(array('test_case' => 'ContainerDump', 'root_config' => 'config.yml', 'debug' => false));
29+
30+
$this->assertTrue($client->getContainer()->has('serializer'));
31+
}
32+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\TestBundle;
13+
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
14+
15+
return array(
16+
new FrameworkBundle(),
17+
new TestBundle(),
18+
);
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
imports:
2+
- { resource: ../config/default.yml }
3+
4+
framework:
5+
# Enabled as many thing as possible
6+
esi: true
7+
ssi: true
8+
fragments: true
9+
profiler: true
10+
router: true
11+
session: true
12+
request: true
13+
templating:
14+
enabled: true
15+
engines: ['php']
16+
assets: true
17+
translator: true
18+
validation: true
19+
serializer: true
20+
property_info: true
21+
csrf_protection: true
22+
form: true

0 commit comments

Comments
 (0)
0