eZ/Bundle/EzPublishCoreBundle/DependencyInjection/EzPublishCoreExtension.php 1 location
|
@@ 468-475 (lines=8) @@
|
| 465 |
|
} |
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
public function prepend(ContainerBuilder $container) |
| 469 |
|
{ |
| 470 |
|
// Default settings for FOSHttpCacheBundle |
| 471 |
|
$configFile = __DIR__ . '/../Resources/config/fos_http_cache.yml'; |
| 472 |
|
$config = Yaml::parse(file_get_contents($configFile)); |
| 473 |
|
$container->prependExtensionConfig('fos_http_cache', $config); |
| 474 |
|
$container->addResource(new FileResource($configFile)); |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
/** |
| 478 |
|
* Adds a new policy provider to the internal collection. |
eZ/Bundle/EzPublishRestBundle/DependencyInjection/EzPublishRestExtension.php 1 location
|
@@ 47-55 (lines=9) @@
|
| 44 |
|
$this->enableControllerCache($container); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
public function prepend(ContainerBuilder $container) |
| 48 |
|
{ |
| 49 |
|
if ($container->hasExtension('nelmio_cors')) { |
| 50 |
|
$file = __DIR__ . '/../Resources/config/nelmio_cors.yml'; |
| 51 |
|
$config = Yaml::parse(file_get_contents($file)); |
| 52 |
|
$container->prependExtensionConfig('nelmio_cors', $config); |
| 53 |
|
$container->addResource(new FileResource($file)); |
| 54 |
|
} |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
private function enableControllerCache(ContainerBuilder $container) |
| 58 |
|
{ |