eZ/Bundle/EzPublishRestBundle/DependencyInjection/EzPublishRestExtension.php 1 location
|
@@ 45-53 (lines=9) @@
|
| 42 |
|
$processor->mapConfigArray('rest_root_resources', $config); |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
public function prepend(ContainerBuilder $container) |
| 46 |
|
{ |
| 47 |
|
if ($container->hasExtension('nelmio_cors')) { |
| 48 |
|
$file = __DIR__ . '/../Resources/config/nelmio_cors.yml'; |
| 49 |
|
$config = Yaml::parse(file_get_contents($file)); |
| 50 |
|
$container->prependExtensionConfig('nelmio_cors', $config); |
| 51 |
|
$container->addResource(new FileResource($file)); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
} |
| 55 |
|
|
eZ/Bundle/EzPublishCoreBundle/DependencyInjection/EzPublishCoreExtension.php 1 location
|
@@ 457-464 (lines=8) @@
|
| 454 |
|
} |
| 455 |
|
} |
| 456 |
|
|
| 457 |
|
public function prepend(ContainerBuilder $container) |
| 458 |
|
{ |
| 459 |
|
// Default settings for FOSHttpCacheBundle |
| 460 |
|
$configFile = __DIR__ . '/../Resources/config/fos_http_cache.yml'; |
| 461 |
|
$config = Yaml::parse(file_get_contents($configFile)); |
| 462 |
|
$container->prependExtensionConfig('fos_http_cache', $config); |
| 463 |
|
$container->addResource(new FileResource($configFile)); |
| 464 |
|
} |
| 465 |
|
|
| 466 |
|
/** |
| 467 |
|
* Adds a new policy provider to the internal collection. |