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
|
@@ 471-478 (lines=8) @@
|
| 468 |
|
} |
| 469 |
|
} |
| 470 |
|
|
| 471 |
|
public function prepend(ContainerBuilder $container) |
| 472 |
|
{ |
| 473 |
|
// Default settings for FOSHttpCacheBundle |
| 474 |
|
$configFile = __DIR__ . '/../Resources/config/fos_http_cache.yml'; |
| 475 |
|
$config = Yaml::parse(file_get_contents($configFile)); |
| 476 |
|
$container->prependExtensionConfig('fos_http_cache', $config); |
| 477 |
|
$container->addResource(new FileResource($configFile)); |
| 478 |
|
} |
| 479 |
|
|
| 480 |
|
/** |
| 481 |
|
* Adds a new policy provider to the internal collection. |