diff --git a/DependencyInjection/KaliopEzOptionFieldTypeExtension.php b/DependencyInjection/KaliopEzOptionFieldTypeExtension.php index 385eeb3..51f6fd5 100644 --- a/DependencyInjection/KaliopEzOptionFieldTypeExtension.php +++ b/DependencyInjection/KaliopEzOptionFieldTypeExtension.php @@ -19,7 +19,7 @@ class KaliopEzOptionFieldTypeExtension extends Extension implements PrependExten // @see https://doc.ez.no/display/EZP/Template+implementation public function prepend(ContainerBuilder $container) { - $config = Yaml::parse(__DIR__ . '/../Resources/config/ez_field_templates.yml'); + $config = Yaml::parse(file_get_contents(__DIR__ . '/../Resources/config/ez_field_templates.yml')); $container->prependExtensionConfig('ezpublish', $config); }