Skip to content

Commit e0bd6c8

Browse files
committed
Merge branch '1.8' into 2.0
2 parents 0735ac7 + b99018d commit e0bd6c8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

DependencyInjection/FOSRestExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121

2222
class FOSRestExtension extends Extension
2323
{
24+
/**
25+
* {@inheritdoc}
26+
*/
27+
public function getConfiguration(array $config, ContainerBuilder $container)
28+
{
29+
return new Configuration($container->getParameter('kernel.debug'));
30+
}
31+
2432
/**
2533
* Loads the services based on your application configuration.
2634
*

Tests/DependencyInjection/FOSRestExtensionTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,13 @@ public static function getShowExceptionData()
603603
);
604604
}
605605

606+
public function testGetConfiguration()
607+
{
608+
$configuration = $this->extension->getConfiguration(array(), $this->container);
609+
610+
$this->assertInstanceOf('FOS\RestBundle\DependencyInjection\Configuration', $configuration);
611+
}
612+
606613
/**
607614
* Assert that loader definition described properly.
608615
*

0 commit comments

Comments
 (0)